/* =========================================
   PAGE DELU - DA YRSERIA CENTRAL
   ========================================= */
.delu-wrapper {
    flex: 1; width: 100%; max-width: 1400px; margin: 120px auto 80px;
    padding: 0 20px; display: flex; flex-direction: column; align-items: center;
}

.delu-header { text-align: center; margin-bottom: 40px; animation: fadeInDown 0.5s; }
.delu-header h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 10px; color: var(--text-dark); }
.delu-header h1 span { color: var(--secondary); }
.delu-header p { color: var(--text-muted); font-size: 1.1rem; font-weight: 700; }

/* Grille de Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; width: 100%; margin-bottom: 40px; }
.stat-card { padding: 25px 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 10px 30px rgba(217, 119, 6, 0.1); transition: 0.3s; }
.stat-card:hover { transform: translateY(-5px); background: white; }
.stat-card i.main-icon { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }
.stat-card .stat-value { font-size: 2.2rem; font-weight: 900; color: var(--text-dark); margin-bottom: 5px; }
.stat-card .stat-label { color: var(--text-muted); font-size: 0.85rem; font-weight: 800; text-transform: uppercase; }

/* =========================================
   PODIUM EN CARTES
   ========================================= */
.podium-section { width: 100%; margin-bottom: 40px; }
.podium-container { display: flex; justify-content: center; align-items: flex-end; gap: 20px; height: 280px; padding-bottom: 10px; }
.podium-card-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.9); border: var(--glass-border);
    border-radius: 25px; padding: 25px 20px; width: 220px; transition: 0.3s;
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.15); position: relative;
}
.podium-card-item:hover { transform: translateY(-5px); background: white; }

.podium-1st { order: 2; height: 260px; border: 2px solid var(--primary); box-shadow: 0 15px 40px rgba(245, 158, 11, 0.3); z-index: 3; }
.podium-2nd { order: 1; height: 220px; border: 1px solid #cbd5e1; z-index: 2; }
.podium-3rd { order: 3; height: 200px; border: 1px solid #b45309; z-index: 1; }

.podium-rank { position: absolute; top: -15px; padding: 5px 15px; border-radius: 50px; font-weight: 900; font-size: 1rem; text-transform: uppercase; }
.podium-1st .podium-rank { background: var(--primary); color: white; box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4); }
.podium-2nd .podium-rank { background: #e2e8f0; color: black; }
.podium-3rd .podium-rank { background: #b45309; color: white; }

.podium-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 3px solid rgba(0,0,0,0.05); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.podium-1st .podium-img { width: 100px; height: 100px; border-color: var(--primary); }
.podium-2nd .podium-img { border-color: #e2e8f0; }
.podium-3rd .podium-img { border-color: #b45309; }

.podium-name { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 900; color: var(--text-dark); margin-bottom: 10px; }
.podium-stats { display: flex; flex-direction: column; gap: 5px; width: 100%; }
.podium-stat-line { background: rgba(217, 119, 6, 0.1); padding: 6px 10px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; color: var(--text-dark); display: flex; justify-content: space-between; align-items: center; }
.podium-stat-line i { color: var(--secondary); }

/* Graphiques */
.charts-container { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; width: 100%; margin-bottom: 40px; }
.chart-card { padding: 25px; box-shadow: 0 10px 30px rgba(217, 119, 6, 0.1); }
.chart-card h3 { color: var(--text-dark); font-family: 'Playfair Display', serif; margin: 0 0 20px 0; font-size: 1.4rem; font-weight: 900; text-align: center; }
.chart-wrapper { position: relative; width: 100%; height: 250px; }

/* Filtres */
.filters-bar { display: flex; gap: 15px; width: 100%; margin-bottom: 20px; }
.filters-bar input, .filters-bar select {
    background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(217, 119, 6, 0.3); color: var(--text-dark);
    padding: 12px 15px; border-radius: 50px; font-family: inherit; font-weight: 700; outline: none; flex: 1;
}
.filters-bar input:focus, .filters-bar select:focus { border-color: var(--secondary); background: white; }

/* =========================================
   TABLEAU EN CARTES 
   ========================================= */
.table-container { width: 100%; overflow-x: auto; padding-bottom: 20px; background: transparent; border: none; box-shadow: none; }
.delu-table { width: 100%; border-collapse: separate; border-spacing: 0 12px; text-align: left; min-width: 1100px; }

.delu-table th { padding: 0 20px 5px 20px; font-size: 0.85rem; color: var(--text-muted); font-weight: 800; text-transform: uppercase; border: none; }

/* Les Lignes = Des Cartes */
.delu-table tbody tr { background: var(--glass-bg); backdrop-filter: blur(10px); box-shadow: 0 5px 15px rgba(217, 119, 6, 0.1); transition: 0.3s; border-radius: 25px; }
.delu-table tbody tr:hover { background: white; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(217, 119, 6, 0.2); }

.delu-table td { padding: 15px 20px; vertical-align: middle; color: var(--text-dark); font-weight: 700; border-top: var(--glass-border); border-bottom: var(--glass-border); font-size: 0.95rem; }
.delu-table td:first-child { border-left: var(--glass-border); border-top-left-radius: 25px; border-bottom-left-radius: 25px; }
.delu-table td:last-child { border-right: var(--glass-border); border-top-right-radius: 25px; border-bottom-right-radius: 25px; }

.player-info { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1rem; color: var(--text-dark); }
.king-crown { color: var(--primary); font-size: 1.2rem; filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.6)); animation: floatCrown 2s infinite ease-in-out; }
@keyframes floatCrown { 0%, 100% { transform: translateY(0) rotate(15deg); } 50% { transform: translateY(-3px) rotate(5deg); } }

.btn-opgg { 
    display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--secondary);
    border: 1px solid var(--secondary); padding: 6px 12px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 800; text-decoration: none !important; transition: 0.2s; 
}
.btn-opgg:hover { background: var(--secondary); color: white; }

.champ-info { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.champ-info img { width: 35px; height: 35px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); object-fit: cover; }

.role-badge { background: rgba(217, 119, 6, 0.1); color: var(--secondary); padding: 5px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 900; text-transform: uppercase; }

/* Badges Elo réadaptés pour fond clair */
.elo-badge { display: inline-flex; justify-content: center; min-width: 110px; padding: 6px 10px; border-radius: 50px; font-size: 0.8rem; font-weight: 900; text-transform: uppercase; }
.elo-iron { background: #e4e4e7; border: 1px solid #a1a1aa; color: #3f3f46; }
.elo-bronze { background: #fef3c7; border: 1px solid #d97706; color: #78350f; }
.elo-silver { background: #f1f5f9; border: 1px solid #94a3b8; color: #334155; }
.elo-gold { background: #fef08a; border: 1px solid #ca8a04; color: #713f12; }
.elo-platine { background: #e0f2fe; border: 1px solid #0ea5e9; color: #0369a1; }
.elo-emeraude { background: #d1fae5; border: 1px solid #10b981; color: #064e3b; }
.elo-diamant { background: #e0e7ff; border: 1px solid #6366f1; color: #312e81; }
.elo-master { background: #f3e8ff; border: 1px solid #a855f7; color: #581c87; }
.elo-boosted { background: #fee2e2; border: 1px solid #ef4444; color: #7f1d1d; }

.status-yes { color: #b91c1c; font-weight: 900; background: #fee2e2; border: 1px solid #f87171; padding: 6px 12px; border-radius: 50px; display: inline-block; min-width: 90px; text-align: center; }
.status-no { color: #047857; font-weight: 900; background: #d1fae5; border: 1px solid #34d399; padding: 6px 12px; border-radius: 50px; display: inline-block; min-width: 90px; text-align: center; }

/* Modal Admin */
.admin-action { background: transparent; border: none; color: var(--text-muted); cursor: pointer; transition: 0.2s; font-size: 1rem; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.admin-action:hover { color: var(--text-dark); background: rgba(0,0,0,0.05); }
.admin-action.delete:hover { background: var(--recruit-red); color: white; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; z-index: 9999; }
.modal-overlay.active { display: flex; }
.modal-card { width: 100%; max-width: 500px; display: flex; flex-direction: column; gap: 15px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,0.3); padding: 30px; }
.modal-card h3 { margin: 0 0 10px 0; font-size: 1.5rem; color: var(--text-dark); font-family: 'Playfair Display', serif;}
.modal-card input, .modal-card select { background: white; border: 1px solid rgba(0,0,0,0.1); padding: 15px; border-radius: 12px; color: var(--text-dark); font-family: inherit; font-weight: 600; outline: none; }
.modal-card input:focus { border-color: var(--secondary); }
.modal-buttons { display: flex; gap: 10px; margin-top: 10px; }
.btn-save { background: var(--success-green); color: white; border: none; padding: 15px; border-radius: 50px; font-weight: 900; cursor: pointer; flex: 1; transition: 0.2s; font-size: 1rem; }
.btn-save:hover { background: #15803d; }
.btn-cancel { background: rgba(0,0,0,0.05); color: var(--text-dark); border: 1px solid rgba(0,0,0,0.1); padding: 15px; border-radius: 50px; font-weight: 900; cursor: pointer; flex: 1; transition: 0.2s; font-size: 1rem; }

@media (max-width: 1000px) { .charts-container { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .filters-bar { flex-direction: column; }
    .filters-bar input, .filters-bar select { width: 100%; }
    .podium-container { flex-direction: column; align-items: center; height: auto; gap: 20px; }
    .podium-1st, .podium-2nd, .podium-3rd { order: 0; transform: none; height: auto; width: 250px; }
}
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }