/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
    --bg-primary: #070708;
    --bg-secondary: #0d0d0f;
    --bg-tertiary: #131317;
    --accent-red: #ff1e27;
    --accent-red-dark: #b30c12;
    --accent-red-glow: rgba(255, 30, 39, 0.35);
    --accent-red-glow-strong: rgba(255, 30, 39, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;
    --text-muted: #6b6b76;
    
    --glass-bg: rgba(13, 13, 15, 0.85);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-border-hover: rgba(255, 30, 39, 0.3);
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --shadow-red: 0 0 20px var(--accent-red-glow);
    --shadow-red-strong: 0 0 35px var(--accent-red-glow-strong);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #202025;
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red-glow);
}

/* Selection */
::selection {
    background-color: var(--accent-red);
    color: #ffffff;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5em;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1em;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.text-glow {
    text-shadow: 0 0 12px var(--accent-red-glow-strong);
    color: var(--accent-red);
}

.text-glow-red {
    color: var(--accent-red);
    text-shadow: 0 0 8px var(--accent-red-glow);
}

.gold {
    color: #ffd700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-red);
    margin-bottom: 15px;
    border-radius: 2px;
    box-shadow: var(--shadow-red);
}

.accent-line.center {
    margin-left: auto;
    margin-right: auto;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    transition: var(--transition-normal);
}

.glass-panel:hover {
    border-color: var(--glass-border-hover);
}

.border-glow {
    border-color: var(--accent-red-glow-strong);
    box-shadow: var(--shadow-red);
}

.border-glow:hover {
    box-shadow: var(--shadow-red-strong);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 14px 28px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--accent-red);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

.btn-glow {
    box-shadow: var(--shadow-red);
}

.btn-glow:hover {
    box-shadow: var(--shadow-red-strong);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

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

.btn-full {
    width: 100%;
}

/* ==========================================================================
   1. LOADING SCREEN STYLING
   ========================================================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    width: 90%;
    padding: 20px;
}

.loading-logo-wrapper {
    position: relative;
    width: 210px;
    height: 210px;
    margin: 0 auto 30px;
}

.loading-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: floatLogo 3s ease-in-out infinite;
}

.logo-glow {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, var(--accent-red) 0%, transparent 70%);
    opacity: 0.6;
    filter: blur(10px);
    z-index: 1;
    animation: pulsingGlow 1.5s ease-in-out infinite alternate;
}

.loading-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background-color: #121217;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red-dark), var(--accent-red));
    box-shadow: 0 0 10px var(--accent-red);
    transition: width 0.1s linear;
}

.loading-percent {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-red);
    text-shadow: var(--shadow-red);
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulsingGlow {
    0% { transform: scale(0.9); opacity: 0.4; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

/* ==========================================================================
   2. HEADER STYLING
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(7, 7, 8, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-normal);
}

.main-header.scrolled {
    background: var(--bg-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 8px var(--accent-red-glow));
    transition: var(--transition-fast);
}

.logo-link:hover .header-logo {
    transform: rotate(5deg) scale(1.05);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #ffffff, var(--accent-red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 30, 39, 0.1);
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    padding: 10px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-red);
    box-shadow: var(--shadow-red);
    transition: var(--transition-normal);
}

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

.header-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: #ffffff;
    box-shadow: var(--shadow-red);
    transform: translateY(-2px);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* Hamburger animation on open */
.mobile-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   3. SPA CONTENT AREA PANELS
   ========================================================================== */
.main-content {
    margin-top: 80px; /* offset header */
    min-height: calc(100vh - 80px - 280px); /* header + footer offset */
}

.tab-panel {
    display: none;
    animation: tabAnimation 0.5s ease forwards;
}

.tab-panel.active {
    display: block;
}

@keyframes tabAnimation {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   4. TAB: ACCUEIL (HOME PAGE)
   ========================================================================== */

/* Hero Section */
.hero-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 30px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    position: relative;
    z-index: 5;
}

.laps-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-red);
    background-color: rgba(255, 30, 39, 0.1);
    border: 1px solid rgba(255, 30, 39, 0.25);
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 10px rgba(255, 30, 39, 0.05);
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(0.85rem, 1.5vw, 1.05rem);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: relative;
    z-index: 2;
    max-height: 520px;
    width: auto;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.6));
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    animation: floatImage 6s ease-in-out infinite;
}

.hero-image-glow {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--accent-red) 0%, transparent 75%);
    opacity: 0.45;
    filter: blur(40px);
    z-index: 1;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Twitch Live Section */
.twitch-section {
    max-width: 1300px;
    margin: 40px auto 80px;
    padding: 0 30px;
}

.section-header {
    margin-bottom: 40px;
}

.section-header.center {
    text-align: center;
}

.section-title {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.section-header.center .section-title {
    justify-content: center;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.twitch-container-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--shadow-red);
    position: relative;
    overflow: hidden;
}

.twitch-container-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
}

.twitch-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
}

.twitch-player-card {
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.twitch-ratio-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.twitch-ratio-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.twitch-chat-card {
    background-color: #0e0e10;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
    height: 100%;
}

.twitch-chat-wrapper {
    width: 100%;
    height: 100%;
    min-height: 480px;
}

.twitch-chat-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Hypebet Promotion Section */
.hypebet-promo-section {
    max-width: 1300px;
    margin: 80px auto;
    padding: 0 30px;
}

.promo-card {
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-red-glow) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
}

.hypebet-badge {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.promo-logo {
    width: 260px;
    height: auto;
    max-width: 100%;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.promo-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.promo-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.promo-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.promo-features li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.1rem;
    color: var(--accent-red);
    width: 32px;
    height: 32px;
    background-color: rgba(255, 30, 39, 0.1);
    border: 1px solid rgba(255, 30, 39, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.feature-text strong {
    color: #ffffff;
    display: block;
    margin-bottom: 2px;
}

.promo-action-box {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-action-logo {
    width: 160px;
    height: auto;
    max-width: 100%;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
}

.action-card-header {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.action-desc {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 25px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-num {
    width: 26px;
    height: 26px;
    background-color: var(--accent-red);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-red);
}

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

/* Video Presentation section */
.video-presentation-section {
    max-width: 1300px;
    margin: 80px auto;
    padding: 0 30px;
}

.video-presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.presentation-bio {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.presentation-quote {
    font-style: italic;
    color: #ffffff;
    font-size: 1.15rem;
    padding-left: 20px;
    border-left: 3px solid var(--accent-red);
    margin-bottom: 35px;
}

.community-stats-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-bubble {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--accent-red);
}

.stat-lbl {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

/* Gamer monitor style for video */
.video-frame-wrapper {
    display: flex;
    justify-content: center;
}

.monitor-frame {
    position: relative;
    width: 100%;
    max-width: 500px;
    z-index: 2;
}

.monitor-screen {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect */
    background: #000;
    border: 12px solid #1a1a1f;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.8), var(--shadow-red);
}

.video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay-play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(7, 7, 8, 0.4));
    pointer-events: none;
}

.monitor-stand {
    position: relative;
    width: 80px;
    height: 35px;
    background-color: #121215;
    margin: 0 auto;
    clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

/* Testimonials */
.testimonials-section {
    max-width: 1300px;
    margin: 80px auto;
    padding: 0 30px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--text-muted);
    opacity: 0.15;
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar-glow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 30, 39, 0.1);
    border: 1px solid rgba(255, 30, 39, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.user-role {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Partner Logos */
.partners-logos-section {
    border-top: 1px solid var(--glass-border);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 40px 0;
}

.partners-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.partner-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.45;
    transition: var(--transition-fast);
}

.partner-logo:hover {
    opacity: 0.85;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.partner-logo.invert {
    filter: brightness(0) invert(1) opacity(0.45);
}

.partner-logo.invert:hover {
    filter: brightness(0) invert(1) opacity(0.85);
}

/* ==========================================================================
   5. TAB: LEADERBOARD
   ========================================================================== */
.leaderboard-header-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 30px 40px;
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 35px;
}

.leaderboard-info-cards {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.prize-pool-card {
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.prize-pool-title {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.prize-pool-value {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    font-weight: 900;
    color: var(--accent-red);
    margin-bottom: 12px;
}

.prize-pool-details {
    font-size: 0.92rem;
    margin-bottom: 18px;
}

.prize-pool-date {
    font-size: 0.75rem;
    color: var(--accent-red);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rewards-breakdown-card {
    padding: 30px 35px;
}

.rewards-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.rewards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reward-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.reward-row .rank {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-secondary);
}

.reward-row .amount {
    font-weight: 700;
    color: #ffffff;
}

.leaderboard-iframe-section {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 30px;
}

.iframe-container {
    overflow: hidden;
}

.iframe-header {
    background-color: var(--bg-secondary);
    padding: 15px 25px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.dot-red {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-red);
    box-shadow: var(--shadow-red-strong);
    animation: pulseGlow 1.2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.iframe-title {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.iframe-wrapper {
    width: 100%;
    height: 110vh; /* Match container height */
    background-color: #000;
}

.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   6. TAB: ÉVÉNEMENTS
   ========================================================================== */
.events-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 30px 40px;
    text-align: center;
}

.events-intro-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
}

/* Vertical line behind timeline cards */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 45px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-red), rgba(255, 30, 39, 0.05));
    pointer-events: none;
}

.timeline-card {
    margin-left: 50px;
    padding: 40px;
    position: relative;
}

/* Dot trigger on line */
.timeline-card::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 45px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 3px solid var(--accent-red);
    box-shadow: var(--shadow-red);
    z-index: 2;
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-red);
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.event-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.event-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.event-links {
    margin: 25px 0;
}

.event-video-wrapper {
    margin-top: 30px;
    border-top: 1px solid var(--glass-border);
    padding-top: 25px;
}

.video-title {
    font-size: 0.8rem;
    margin-bottom: 15px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.youtube-ratio-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #000;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.youtube-ratio-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   7. TAB: À PROPOS
   ========================================================================== */
.apropos-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 30px 80px;
}

.profile-card {
    padding: 50px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
}

.profile-avatar-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 2px solid var(--accent-red);
    box-shadow: var(--shadow-red);
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-title-block {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 5px;
}

.profile-username {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.profile-section-title {
    font-size: 1rem;
    color: #ffffff;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    text-transform: uppercase;
}

.profile-text {
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.profile-counters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.counter-box {
    padding: 25px 15px;
    text-align: center;
}

.counter-icon {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.counter-val {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 5px;
}

.counter-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ==========================================================================
   8. FOOTER STYLING
   ========================================================================== */
.main-footer {
    background-color: #040405;
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

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

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 38px;
    width: auto;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    color: #ffffff;
}

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 320px;
}

.footer-title {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links-list a i {
    font-size: 0.65rem;
    color: var(--accent-red);
    transition: var(--transition-fast);
}

.footer-links-list a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-links-list a:hover i {
    transform: translateX(2px);
}

.responsible-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.gamble-aware-wrapper {
    display: inline-block;
}

.gamble-aware-logo {
    height: 25px;
    width: auto;
    opacity: 0.4;
    transition: var(--transition-fast);
    filter: brightness(0) invert(1);
}

.gamble-aware-logo:hover {
    opacity: 0.95;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-bottom-socials {
    display: flex;
    gap: 15px;
}

.footer-bottom-socials a {
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.footer-bottom-socials a:hover {
    color: var(--accent-red);
    text-shadow: var(--shadow-red);
}

/* ==========================================================================
   9. RESPONSIVE DESIGN & MEDIA QUERIES
   ========================================================================== */

/* Laptop & Tablet (1024px) */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 30px;
    }
    
    .promo-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 30px;
    }
    
    .twitch-grid {
        grid-template-columns: 1fr 280px;
    }
    
    .testimonials-grid {
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-grid > :nth-child(3) {
        grid-column: span 2;
    }
}

/* Small Tablet & Mobile Landscape (768px) */
@media (max-width: 768px) {
    .header-container {
        padding: 15px 20px;
    }
    
    .header-socials {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    /* Navigation drawer overlay */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-primary);
        z-index: 1000;
        flex-direction: column;
        padding: 40px;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        border-top: 1px solid var(--glass-border);
    }
    
    .nav-menu.open {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 25px;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.1rem;
        display: block;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .laps-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        max-height: 380px;
    }
    
    /* Twitch Player stacked */
    .twitch-grid {
        grid-template-columns: 1fr;
    }
    
    .twitch-chat-card {
        height: 480px;
    }
    
    .twitch-chat-wrapper {
        min-height: auto;
    }
    
    /* Promo stacked */
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .promo-logo {
        margin: 0 auto 20px;
        display: block;
    }
    
    .promo-title {
        text-align: center;
    }
    
    .promo-desc {
        text-align: center;
    }
    
    /* Video presentation stacked */
    .video-presentation-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .video-text-content {
        text-align: center;
    }
    
    .presentation-quote {
        border-left: none;
        border-top: 1px solid var(--accent-red);
        border-bottom: 1px solid var(--accent-red);
        padding: 15px 0;
        margin-left: auto;
        margin-right: auto;
        max-width: 500px;
    }
    
    /* Testimonials stacked */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Leaderboard cards stacked */
    .leaderboard-info-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .apropos-container {
        padding: 40px 15px 60px;
    }
    
    .profile-card {
        padding: 30px 20px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-avatar-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .profile-counters-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Mobile Devices (480px) */
@media (max-width: 480px) {
    .header-container {
        padding: 15px 15px;
    }
    
    .logo-text {
        font-size: 0.95rem;
    }
    
    .main-content {
        margin-top: 70px;
    }
    
    .hero-section {
        padding: 40px 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .twitch-section {
        padding: 0 15px;
    }
    
    .twitch-container-wrapper {
        padding: 12px;
    }
    
    .promo-card {
        padding: 30px 15px;
    }
    
    .video-presentation-section {
        padding: 0 15px;
    }
    
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-card {
        margin-left: 25px;
        padding: 25px 20px;
    }
    
    .timeline-card::before {
        left: -13px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-grid > :nth-child(3) {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}
