:root {
    --bg-dark: #0a0a0f;
    --bg-deep: #050507;
    --bg-card: #16161f;
    --bg-elevated: #1e1e28;
    --accent: #a855f7;
    --accent-bright: #c084fc;
    --accent-deep: #6b21a8;
    --text: #e8e8ee;
    --text-dim: #8a8a96;
    --line: #1f1f2c;
    --white: #ffffff;
}

/* ========================================================
   RESET & BASE
======================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Rajdhani', sans-serif; 
    background: var(--bg-dark); 
    color: var(--text); 
    overflow-x: hidden; 
}
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 50px 2rem; 
}

/* ========================================================
   NAVIGATION
======================================================== */
nav { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1rem 5%; 
    background: rgba(5,5,7,0.95); 
    z-index: 1000; 
    border-bottom: 1px solid var(--line); 
    transition: 0.3s;
}
.nav-logo { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-family: 'Bebas Neue', sans-serif; 
    font-size: 1.5rem; 
    color: white;
}
.nav-logo img { height: 40px; width: auto; }

.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { 
    color: var(--text); text-decoration: none; text-transform: uppercase; 
    font-size: 0.8rem; letter-spacing: 1px; position: relative; padding-bottom: 5px; transition: color 0.3s ease;
}
.nav-links a:hover { color: white; }
.nav-links a.active { color: var(--accent); font-weight: bold; }
.nav-links a.active::after { 
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--accent); 
}

/* Actions Nav (Bouton + Burger) */
.nav-actions { display: flex; align-items: center; gap: 1.5rem; }

.nav-cta {
    background: var(--accent); color: white; padding: 0.6rem 1.5rem; text-decoration: none;
    font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; letter-spacing: 1px; transition: 0.3s ease;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}
.nav-cta:hover { background: white; color: var(--bg-dark); transform: scale(1.05); }

/* Menu Burger (Mobile) */
.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1001; }
.menu-toggle .bar { width: 30px; height: 3px; background: white; transition: 0.3s ease; border-radius: 2px; }

/* ========================================================
   BOUTONS GÉNÉRIQUES
======================================================== */
.hero-actions { display: flex; gap: 1.5rem; margin-top: 2rem; }
.btn { 
    padding: 1rem 2.5rem; border: none; font-family: 'Bebas Neue', sans-serif; cursor: pointer; 
    transition: 0.3s ease; font-size: 1.2rem; text-decoration: none; display: inline-flex; 
    align-items: center; justify-content: center; letter-spacing: 1px;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); 
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: white; color: var(--bg-dark); transform: scale(1.05); }
.btn-secondary { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: white; }
.btn-secondary:hover { background: var(--line); color: var(--accent-bright); transform: scale(1.05); }

/* ========================================================
   HERO SECTION
======================================================== */
.hero { min-height: 100vh; position: relative; display: flex; align-items: center; padding-top: 80px; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.15), var(--bg-deep)); z-index: -1; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 50px 50px; mask-image: radial-gradient(circle, black, transparent 80%); -webkit-mask-image: radial-gradient(circle, black, transparent 80%); opacity: 0.1; z-index: -1; }
.hero-content { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 5%; gap: 4rem; }
.hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem, 8vw, 6.5rem); line-height: 0.9; color: white; }
.accent { color: var(--accent); }
.hero-subtitle { color: var(--text-dim); max-width: 550px; font-size: 1.15rem; margin-bottom: 2.5rem; margin-top: 1rem; }
.hero-logo-img { width: 100%; max-width: 450px; filter: drop-shadow(0 0 30px var(--accent)); animation: float 4s infinite ease-in-out; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* ========================================================
   PAGES HEADER & ABOUT
======================================================== */
.about-page, .page-header { padding-top: 150px; text-align: center; }
.section-tag { font-family: 'JetBrains Mono', monospace; color: var(--accent); letter-spacing: 3px; display: block; margin-bottom: 10px; text-transform: uppercase; }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: 4rem; margin-bottom: 40px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 40px; text-align: left; }

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pillar { background: var(--bg-card); padding: 2rem; border: 1px solid var(--line); transition: all 0.4s ease; position: relative; overflow: hidden; }
.pillar-num { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 0.9rem; margin-bottom: 1rem; transition: 0.3s; }
.pillar:hover { transform: translateY(-5px); background: var(--bg-elevated); border-color: var(--accent); box-shadow: 0 10px 30px rgba(168, 85, 247, 0.1); }
.pillar:hover .pillar-num { text-shadow: 0 0 10px var(--accent); color: var(--accent-bright); }
.pillar h4 { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; margin-bottom: 0.5rem; color: white; }

/* ========================================================
   AVANTAGES JOUEURS
======================================================== */
.advantages { background: var(--bg-dark); position: relative; padding-bottom: 50px; }
.advantages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.advantage { background: var(--bg-card); padding: 2.5rem 2rem; transition: all 0.3s ease; position: relative; }
.advantage:hover { background: var(--bg-elevated); z-index: 2; transform: scale(1.02); box-shadow: 0 0 40px rgba(0,0,0,0.5); }
.advantage-icon { width: 50px; height: 50px; background: linear-gradient(135deg, var(--accent-deep), var(--accent)); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: white; font-size: 1.4rem; font-weight: bold; transition: 0.3s ease; }
.advantage:hover .advantage-icon { transform: rotate(10deg) scale(1.1); box-shadow: 0 0 20px var(--accent); }
.advantage h4 { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; color: white; margin-bottom: 0.6rem; letter-spacing: 0.05em; }
.advantage p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.5; }

/* ========================================================
   DESIGN TWITCH
======================================================== */
.live-main { margin-bottom: 4rem; }
.live-main-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.live-main-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; color: var(--white); letter-spacing: 0.1em; display: flex; align-items: center; gap: 0.8rem; }
.live-status { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.9rem; background: rgba(239, 68, 68, 0.15); border: 1px solid #ef4444; color: #ef4444; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }
.live-status::before { content: ''; width: 7px; height: 7px; background: #ef4444; border-radius: 50%; animation: livePulse 1.5s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } }

.twitch-embed { width: 100%; margin: 0 auto; aspect-ratio: 16/9; border: 1px solid var(--line); background: #000; }
.twitch-embed iframe { width: 100%; height: 100%; border: none; }

.streamers-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; color: var(--white); letter-spacing: 0.1em; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.8rem; }
.streamers-title::before { content: ''; width: 30px; height: 1px; background: var(--accent); }

.streamers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.streamer-card { background: var(--bg-card); border: 1px solid var(--line); padding: 1.5rem; text-decoration: none; color: inherit; transition: all 0.3s ease; display: flex; flex-direction: column; gap: 0.8rem; position: relative; overflow: hidden; }
.streamer-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0; background: linear-gradient(to bottom, #9146ff, var(--accent)); transition: height 0.3s ease; }
.streamer-card:hover { background: var(--bg-elevated); transform: translateY(-3px); border-color: var(--accent); }
.streamer-card:hover::before { height: 100%; }
.streamer-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.streamer-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: var(--white); letter-spacing: 0.05em; }
.streamer-handle { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--text-dim); margin-top: 0.2rem; }
.streamer-game { color: var(--accent-bright); font-size: 0.85rem; font-weight: 500; }
.streamer-cta { margin-top: auto; padding-top: 0.8rem; border-top: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-dim); display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; letter-spacing: 0.15em; }
.streamer-cta-arrow { color: var(--accent-bright); transition: transform 0.2s ease; }
.streamer-card:hover .streamer-cta-arrow { transform: translateX(4px); }
.streamer-offline-dot { width: 8px; height: 8px; background: var(--text-dim); border-radius: 50%; }

/* ========================================================
   ROSTERS
======================================================== */
.roster-type-title { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 1.2rem; margin-bottom: 20px; text-transform: uppercase; }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin-bottom: 50px; }
.player-card { background: linear-gradient(135deg, #16161f 0%, #0a0a0f 100%); padding: 30px 20px; border: 1px solid var(--line); text-align: center; position: relative; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); overflow: hidden; }
.player-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2); }
.player-card.leader { border-top: 4px solid var(--accent); }
.player-card.sub { opacity: 0.7; border-style: dashed; }
.player-name { font-size: 2.2rem; font-family: 'Bebas Neue', sans-serif; color: white; }
.player-role { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--accent-bright); text-transform: uppercase; margin-bottom: 15px; }
.player-rank { font-family: 'Rajdhani', sans-serif; font-size: 0.9rem; color: var(--accent); margin-top: 10px; font-weight: bold; }
.x-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;

    transition: transform 0.2s ease, filter 0.2s ease;
}

.x-logo:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
}
.palmares-item { background: var(--bg-card); border: 1px solid var(--line); padding: 25px; display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 20px; align-items: center; margin-bottom: 15px; }
.palmares-rank { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: white; }
.palmares-date { color: var(--accent); font-weight: 700; text-align: right; }

/* ========================================================
   ONGLETS & CALENDRIER
======================================================== */
.game-tabs { display: flex; justify-content: center; gap: 10px; margin: 30px 0 50px; flex-wrap: wrap; }
.game-tab { background: transparent; border: 1px solid var(--line); color: white; padding: 12px 25px; cursor: pointer; font-family: 'Bebas Neue'; font-size: 1.1rem; transition: 0.3s; }
.game-tab.active { background: var(--accent); border-color: var(--accent); }
.game-content { display: none; }
.game-content.active { display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.calendar-grid { display: grid; gap: 15px; margin-bottom: 50px; }
.match-card { background: var(--bg-card); border: 1px solid var(--line); padding: 20px 40px; display: grid; grid-template-columns: 150px 1fr 200px; align-items: center; transition: 0.3s ease; }
.match-card:hover { border-color: var(--accent); background: rgba(168, 85, 247, 0.05); transform: translateX(10px); }
.match-teams { display: flex; justify-content: center; align-items: center; gap: 3rem; font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; color: white; }
.match-vs { font-size: 1rem; color: var(--bg-dark); background: white; width: 35px; height: 35px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-family: 'Rajdhani', sans-serif; font-weight: bold; }

/* ========================================================
   FOOTER
======================================================== */
footer { padding: 60px 0; background: var(--bg-deep); text-align: center; border-top: 1px solid var(--line); margin-top: 50px; }
.footer-logo { height: 50px; margin-bottom: 25px; }
.social-links { display: flex; justify-content: center; gap: 25px; margin-bottom: 20px; }
.social-links img { height: 30px; filter: invert(1); transition: 0.3s; }
.social-links a:hover img { transform: translateY(-5px); filter: none; }

/* ========================================================
   RESPONSIVE (MENU MOBILE & AFFICHAGE)
======================================================== */
@media (max-width: 900px) {
    .hero-content, .about-grid, .pillars { grid-template-columns: 1fr; text-align: center; }
    .hero-logo-wrap { order: -1; }
    .match-card { grid-template-columns: 1fr; text-align: center; gap: 1rem; padding: 20px; }
    .match-teams { font-size: 1.8rem; gap: 1rem; flex-wrap: wrap; }
    .live-main-header { flex-direction: column; align-items: flex-start; }
    
    /* MENU MOBILE BURGER */
    .menu-toggle { display: flex; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 7, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 2rem;
        border-bottom: 1px solid var(--line);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); 
        transition: 0.4s ease-in-out;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); 
    }
    
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}   

/* ==================== GALERIE & VIDEOS ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { aspect-ratio: 9/16; }

.gallery-item video, .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover video, .gallery-item:hover img {
    transform: scale(1.08);
}

.video-indicator {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    background: rgba(168, 85, 247, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.video-indicator::after {
    content: '▶';
    color: white;
    font-size: 1.5rem;
    margin-left: 5px;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,15,0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-cat { color: var(--accent); font-family: 'JetBrains Mono'; font-size: 0.8rem; }
.gallery-item-title { font-family: 'Bebas Neue'; font-size: 1.5rem; color: white; }

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5,5,7,0.98);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active { display: flex; }

.lightbox-close {
    position: absolute;
    top: 30px; right: 30px;
    background: none; border: none;
    color: white; font-size: 2rem; cursor: pointer;
    z-index: 10001;
}

@media (max-width: 768px) {
    .gallery-item.wide { grid-column: span 1; }
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.gallery-filter {
    background: var(--bg-card);
    border: 1px solid var(--line);
    color: var(--text-dim);
    padding: 10px 25px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s ease;
    letter-spacing: 1px;
}

.gallery-filter:hover {
    border-color: var(--accent);
    color: white;
}

.gallery-filter.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    min-height: 200px;
}

.shop-btn { 
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: white !important;
    padding: 10px 20px; 
    border-radius: 4px; 
    text-decoration: none !important;
    font-weight: 700; 
    text-transform: uppercase; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    transition: 0.3s;
    font-family: 'Bebas Neue', sans-serif; 
    font-size: 1.1rem; 
    letter-spacing: 1px;
    border: 1px solid transparent;
}
.shop-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4); 
    border-color: var(--accent-bright);
}
.shop-btn img {
    height: 20px;
    filter: brightness(0) invert(1);
}

/* ========================================================
   REPARATION DU MENU DE NAVIGATION (HEADER)
======================================================== */
.nav-links a { 
    color: var(--text-dim) !important;
    text-decoration: none !important;
    text-transform: uppercase !important; 
    font-size: 0.85rem !important; 
    letter-spacing: 1px !important; 
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    padding: 10px 0 !important;
}

.nav-links a:hover { 
    color: var(--white) !important;
    text-shadow: 0 0 10px var(--accent) !important;
}

.nav-links a.active { 
    color: var(--accent) !important; 
}

.nav-links a.active::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 2px; 
    background: var(--accent) !important;
    box-shadow: 0 0 10px var(--accent) !important;
}

/* ========================================================
   BOUTONS TWITTER & TRACKER SUR LES CARTES ROSTER
======================================================== */
.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 200px;
}

/* On applique exactement le même style aux deux boutons */
.player-twitter-btn, 
.player-tracker-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px; /* J'ai réduit un peu pour qu'ils s'empilent bien */
    padding: 8px 16px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    color: var(--text-dim);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.player-twitter-btn img, 
.player-tracker-btn img {
    height: 14px;
    width: auto;
    transition: filter 0.3s ease;
}

/* Effet Hover (Survol) commun aux deux */
.player-twitter-btn:hover, 
.player-tracker-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--accent);
    color: var(--white);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

/* ========================================================
   SCORES DES MATCHS (CALENDRIER)
======================================================== */
.match-score {
    font-size: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

.score-win { color: var(--accent); }
.score-loss { color: #ef4444; }
.score-draw { color: var(--text-dim); }

.team-win { color: var(--white); text-shadow: 0 0 15px rgba(168, 85, 247, 0.4); }
.team-loss { color: var(--text-dim); }

.match-card.finished {
    background: linear-gradient(90deg, rgba(168,85,247,0.03) 0%, transparent 100%);
    border-color: rgba(168, 85, 247, 0.2);
}

.match-card.finished .match-date {
    text-decoration: line-through;
    color: var(--text-dim);
}

.match-card.finished .match-time {
    color: var(--accent);
    font-weight: bold;
}

/* ========================================================
   LIGHTBOX
======================================================== */
#lightboxImg, #lightboxVideo {
    max-width: 80%;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid var(--accent);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox.active {
    display: flex;
}
