:root {
    --neon-blue: #00d4ff; --neon-green: #39ff14; --neon-purple: #bc13fe;
    --neon-orange: #ff8c00; --neon-yellow: #f4ea10;
    
    /* Couleurs du Podium Esport Vibrantes */
    --gold: #FFD700;
    --silver: #E8E8E8;
    --bronze: #FF8C42;
}

body, html {
    margin: 0; padding: 0; width: 100%; min-height: 100vh;
    font-family: 'Oxanium', sans-serif; color: white;
    background: #050505 url('../assets/fond.jpg') center/cover no-repeat fixed;
    display: flex; flex-direction: column; overflow-x: hidden;
}

.scanlines::before {
    content: " "; display: block; position: fixed; inset: 0; z-index: 100;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px; pointer-events: none; opacity: 0.15;
}

/* --- EFFET PULSATION LOGOS --- */
.pulse-anim { animation: pulseGlow 2.5s infinite ease-in-out; }
@keyframes pulseGlow {
    0% { transform: scale(1); filter: drop-shadow(0 0 15px var(--neon-blue)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 35px var(--neon-blue)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 15px var(--neon-blue)); }
}

/* --- GOUTTE D'EAU & LOGO TGC --- */
.nav-bubble {
    position: fixed; left: 40px; top: 0; width: 140px; height: 120px; z-index: 1001;
    background: rgba(15, 15, 15, 0.8); backdrop-filter: blur(20px); border-radius: 0 0 70px 70px;
    display: flex; justify-content: center; align-items: center; border: 1px solid rgba(255,255,255,0.1); border-top: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.nav-logo { width: 110px !important; filter: drop-shadow(0 0 10px var(--neon-blue)); cursor: pointer; transition: 0.3s; }
.nav-logo:hover { transform: scale(1.05); }

/* --- NAVIGATION HAUT --- */
.glass-nav {
    position: fixed; top: 0; width: 100%; height: 80px;
    background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(20px); border-bottom: 1px solid var(--neon-blue);
    display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.nav-title { font-size: 1.5rem; font-weight: 900; letter-spacing: 2px; color: white; text-shadow: 0 0 15px var(--neon-blue); margin: 0; text-transform: uppercase; }

.btn-retour-accueil {
    position: absolute; right: 30px; background: rgba(0, 212, 255, 0.1); border: 1px solid var(--neon-blue);
    color: var(--neon-blue); padding: 10px 20px; border-radius: 12px; text-decoration: none; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; display: flex; align-items: center; gap: 8px; transition: 0.3s;
}
.btn-retour-accueil:hover { background: var(--neon-blue); color: black; box-shadow: 0 0 15px var(--neon-blue); transform: translateY(-2px); }

/* --- PANNEAUX DE VERRE --- */
.glass-panel { 
    background: rgba(10, 10, 12, 0.8); backdrop-filter: blur(20px); 
    border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
}

/* --- LAYOUT GLOBAL --- */
.podium-layout {
    display: flex; margin-top: 140px; padding: 20px 40px; gap: 40px; 
    min-height: calc(100vh - 280px); box-sizing: border-box; flex-grow: 1;
}

/* --- SIDEBAR JEUX --- */
.sidebar-games { width: 250px; padding: 20px; display: flex; flex-direction: column; overflow-y: auto; flex-shrink: 0; border-color: var(--neon-purple); }

.sidebar-header-box { 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; border-bottom: 1px dashed rgba(255,255,255,0.2); 
    padding-bottom: 15px; margin-bottom: 15px; text-align: center; 
}
.sidebar-podium-logo { width: 130px; margin-bottom: 15px; display: block; }

.year-dropdown {
    width: 100%; padding: 10px; margin-top: 5px;
    background: rgba(0,0,0,0.6); border: 1px solid var(--neon-blue);
    color: var(--neon-blue); border-radius: 8px; font-family: 'Oxanium', sans-serif;
    font-size: 0.9rem; font-weight: 800; cursor: pointer; text-align: center;
    outline: none; transition: 0.3s; text-transform: uppercase;
}
.year-dropdown:focus, .year-dropdown:hover { box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); background: rgba(0, 212, 255, 0.1); }
.year-dropdown option { background: #0a0a0a; color: white; }

.sidebar-day-header { color: var(--neon-blue); font-size: 0.75rem; text-transform: uppercase; font-weight: 800; margin: 15px 0 8px 0; padding-bottom: 5px; border-bottom: 1px solid rgba(0, 212, 255, 0.3); text-align: left; }

.games-list { display: flex; flex-direction: column; gap: 12px; width: 100%; }

.game-logo-btn { background: rgba(0,0,0,0.5); border: 2px solid transparent; border-radius: 12px; padding: 12px; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; }
.sidebar-logo-img { max-width: 100%; max-height: 70px; object-fit: contain; filter: drop-shadow(0px 0px 4px #ffffff) drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.8)) grayscale(40%); transition: 0.3s; }
.game-logo-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--neon-blue); }
.game-logo-btn:hover .sidebar-logo-img { filter: drop-shadow(0 0 10px rgba(255,255,255,1)) drop-shadow(0 0 15px var(--neon-blue)) grayscale(0%); transform: scale(1.05); }
.game-logo-btn.active { border-color: var(--neon-orange); background: rgba(255,140,0,0.1); box-shadow: 0 0 15px rgba(255,140,0,0.4); }
.game-logo-btn.active .sidebar-logo-img { filter: drop-shadow(0 0 10px rgba(255,255,255,1)) grayscale(0%); transform: scale(1.1); }

/* --- ZONE CENTRALE ESTOMPÉE (BACKGROUND PODIUM) --- */
.podium-main { 
    flex-grow: 1; display: flex; flex-direction: column; 
    align-items: center; justify-content: center; 
    position: relative; padding: 40px; border: 1px solid var(--neon-blue);
    border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    overflow: hidden;
    background: url('../assets/podium.png') center/cover no-repeat;
}

.podium-main::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(5, 5, 12, 0.75); 
    backdrop-filter: blur(6px); 
    z-index: 0;
}
.podium-main > * { z-index: 1; }

/* --- BANDEAU TITRE TYPE HERO --- */
.podium-banner-hero {
    position: relative;
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 140px 20px 30px 20px; 
    margin-top: 60px; 
    margin-bottom: 20px;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), inset 0 0 20px rgba(0, 212, 255, 0.15);
}

.logo-container-podium {
    position: absolute;
    top: -110px; 
    left: 50%;
    transform: translateX(-50%);
}

.main-podium-logo { 
    width: 220px; 
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6)); 
}

.game-title-display {
    font-size: 2.3rem; font-weight: 900; text-transform: uppercase; margin: 0; text-align: center;
    letter-spacing: 2px;
}

/* --- TEXTE METAL ARGENTÉ --- */
.silver-metal-text {
    background: linear-gradient(to bottom, #ffffff 0%, #e6e6e6 40%, #8a8a8a 48%, #525252 50%, #d4d4d4 52%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.8)) drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.3));
}

/* --- ANIMATION D'ATTENTE (IDLE HOLOGRAM) --- */
.idle-wrapper {
    position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 10; transition: opacity 0.5s ease;
}
.idle-ring {
    position: absolute; border-radius: 50%; border: 3px solid transparent;
    border-top-color: var(--neon-blue); border-bottom-color: var(--neon-purple);
    animation: spinRing 2s linear infinite; box-shadow: inset 0 0 10px rgba(0,212,255,0.2);
}
.ring-1 { width: 120px; height: 120px; animation-duration: 2s; }
.ring-2 { width: 150px; height: 150px; animation-duration: 3s; animation-direction: reverse; border-top-color: var(--neon-orange); }
.ring-3 { width: 180px; height: 180px; animation-duration: 4s; border-top-color: var(--neon-green); border-bottom-color: transparent;}

@keyframes spinRing { 100% { transform: rotate(360deg); } }
.animate-podium .idle-wrapper { opacity: 0; pointer-events: none; display: none; }


/* --- NOUVEAU PODIUM ESPORT ILLUMINÉ --- */
.css-podium-container {
    display: flex; justify-content: center; align-items: flex-end;
    gap: 35px; width: 100%; max-width: 900px; height: 350px;
    position: relative; padding-bottom: 20px;
}

.stage-lights {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; height: 100%; pointer-events: none; z-index: 0;
    background: radial-gradient(ellipse at bottom center, rgba(255, 215, 0, 0.15) 0%, transparent 60%);
    opacity: 0; transition: opacity 1s;
}
.animate-podium .stage-lights { opacity: 1; }

.podium-floor {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    width: 95%; height: 4px; background: var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue), 0 0 30px var(--neon-blue), 0 0 60px var(--neon-blue);
    border-radius: 10px; z-index: 1;
}

.podium-step {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    width: 28%; height: 100%; position: relative; z-index: 2;
    --step-color: #fff; --step-glow: 255, 255, 255;
}

.step-1st { --step-color: var(--gold); --step-glow: 255, 215, 0; }
.step-2nd { --step-color: var(--silver); --step-glow: 232, 232, 232; }
.step-3rd { --step-color: var(--bronze); --step-glow: 255, 140, 66; }

/* --- LOGOS EQUIPES/JOUEURS --- */
.podium-logo-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--step-color);
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(var(--step-glow), 0.5);
    margin-bottom: 8px;
}
.podium-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.step-1st .podium-logo-container {
    width: 65px;
    height: 65px;
    border-width: 3px;
}
.winner-name-text {
    text-align: center;
    width: 100%;
    word-break: break-word;
}

.cashprize-tag {
    font-size: 0.7rem; color: #aaa; text-transform: uppercase; font-weight: 800;
    letter-spacing: 2px; display: block; margin-bottom: 5px;
}
.cashprize-amount { font-size: 1.6rem; font-weight: 900; }
.step-1st .cashprize-amount { color: var(--gold); text-shadow: 0 0 15px var(--gold); }
.step-2nd .cashprize-amount { color: var(--silver); text-shadow: 0 0 15px var(--silver); }
.step-3rd .cashprize-amount { color: var(--bronze); text-shadow: 0 0 15px var(--bronze); }

.step-name-plate {
    background: linear-gradient(135deg, rgba(var(--step-glow), 0.15) 0%, rgba(10, 10, 15, 0.95) 100%);
    border: 2px solid rgba(var(--step-glow), 0.8); 
    padding: 15px 10px; border-radius: 8px; margin-bottom: 20px; width: 100%;
    text-align: center; font-size: 1.1rem; font-weight: 900; color: #fff; 
    text-transform: uppercase; text-shadow: 0 0 8px var(--step-color), 0 0 15px var(--step-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.9), 0 0 20px rgba(var(--step-glow), 0.4);
    backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center;
    flex-direction: column; word-break: break-word; line-height: 1.3;
    opacity: 0; transform: translateY(20px);
}

.step-bar {
    width: 100%; position: relative;
    background: linear-gradient(180deg, rgba(var(--step-glow), 0.4) 0%, rgba(15, 15, 20, 0.95) 80%);
    border-top: 6px solid var(--step-color); border-radius: 5px 5px 0 0;
    display: flex; justify-content: center; align-items: center;
    box-shadow: inset 0 20px 40px -10px rgba(var(--step-glow), 0.6), 0 -5px 25px -5px rgba(var(--step-glow), 0.3), 0 20px 30px rgba(0,0,0,0.9);
    transform-origin: bottom; transform: scaleY(0);
}
.step-bar::after {
    content: ''; position: absolute; top: 0; left: 5%; width: 90%; height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent 40%);
    pointer-events: none; border-radius: 5px 5px 0 0;
}
.step-bar::before {
    content: ''; position: absolute; bottom: 0; left: 20%; width: 60%; height: 80%;
    background: linear-gradient(0deg, rgba(var(--step-glow), 0.3), transparent);
    filter: blur(15px); pointer-events: none;
}

.step-rank { 
    font-size: 5rem; font-weight: 900; opacity: 0; text-align: center; line-height: 1; color: #fff; 
    text-shadow: 0 0 15px var(--step-color), 0 0 30px var(--step-color), 0 10px 20px rgba(0,0,0,0.9); z-index: 5;
}
.step-1st .step-rank i { color: var(--gold); text-shadow: 0 0 20px var(--gold); animation: floatCrown 2s infinite ease-in-out; }

@keyframes floatCrown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.step-1st .step-bar { height: 260px; }
.step-2nd .step-bar { height: 180px; }
.step-3rd .step-bar { height: 140px; }

.animate-podium .step-bar { animation: riseUp 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.animate-podium .step-1st .step-bar { animation-delay: 0.4s; }
.animate-podium .step-2nd .step-bar { animation-delay: 0.0s; }
.animate-podium .step-3rd .step-bar { animation-delay: 0.2s; }

.animate-podium .step-rank { animation: fadeInScale 0.5s ease-out forwards; }
.animate-podium .step-1st .step-rank { animation-delay: 0.9s; }
.animate-podium .step-2nd .step-rank { animation-delay: 0.5s; }
.animate-podium .step-3rd .step-rank { animation-delay: 0.7s; }

.animate-podium .step-name-plate { animation: slideUpFade 0.5s ease-out forwards, floatingBox 4s ease-in-out infinite; }
.animate-podium .step-1st .step-name-plate { animation-delay: 1.1s, 1.6s; }
.animate-podium .step-2nd .step-name-plate { animation-delay: 0.7s, 1.2s; }
.animate-podium .step-3rd .step-name-plate { animation-delay: 0.9s, 1.4s; }

@keyframes riseUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatingBox { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.footer-capsule {
    background: rgba(12, 12, 12, 0.75); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border-radius: 32px; border: 1px solid rgba(255, 255, 255, 0.08); border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), inset 0 0 15px rgba(255,255,255,0.03);
    margin: 20px auto 30px auto; padding: 15px 40px; display: flex; justify-content: center; align-items: center;
    width: 100%; max-width: 1400px; box-sizing: border-box; z-index: 50; position: relative;
}
.footer-content { display: flex; align-items: center; justify-content: center; gap: 20px; font-size: 0.75rem; text-transform: uppercase; font-weight: 800; color: #aaa; letter-spacing: 1px; }
.footer-content img { height: 60px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s;}
.footer-content img:hover { transform: scale(1.05); border-color: var(--neon-blue); box-shadow: 0 0 15px var(--neon-blue); }

@media (max-width: 1200px) {
    .podium-layout { padding: 20px; gap: 20px; }
    .podium-main { padding: 20px; }
    .game-title-display { font-size: 1.8rem; }
    .step-name-plate { font-size: 0.9rem; padding: 10px 5px; }
    .step-1st .step-name-plate { font-size: 1.1rem; }
    .main-podium-logo { width: 180px; }
    .logo-container-podium { top: -80px; }
    .podium-banner-hero { padding-top: 100px; }
}
@media (max-width: 1000px) {
    .podium-layout { flex-direction: column; overflow-y: auto; margin-top: 100px; }
    .sidebar-games { width: 100%; flex-direction: row; height: auto; flex-wrap: wrap; }
    .sidebar-day-header { width: 100%; }
    .games-list { flex-direction: row; flex-wrap: wrap; }
    
    .nav-bubble { position: relative; left: auto; margin: 0 auto; width: 120px; height: 100px; border-radius: 0 0 60px 60px; }
    .glass-nav { position: relative; flex-direction: column; height: auto; padding: 15px; }
    .btn-retour-accueil { position: relative; right: 0; margin-top: 10px; }
    
    .css-podium-container { height: 300px; gap: 10px; }
}