/* ==========================================
   SDD - Le serveur des Devs | Styles CSS
   ========================================== */

:root {
    --primary: #FFA500;
    --secondary: #FFD700;
    --accent: #FF8C00;
    --dark: #0A0E27;
    --dark-secondary: #141829;
    --light: #1A1F3A;
    --text: #E8E8E8;
    --text-light: #A0A0A0;
    --border: #2A3550;
    --success: #4CAF50;
    --warning: #FFC107;
    --danger: #F44336;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   RESET & BASICS
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
    background: var(--dark);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 2px solid var(--primary);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo {
    font-size: 2rem;
}

.logo-text {
    font-size: 1rem;
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    font-weight: 700;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 8px 16px rgba(255, 165, 0, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-2px);
    font-weight: 700;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    background: var(--dark-secondary);
    color: white;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    border-bottom: 2px solid var(--primary);
}

.hero .container {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-content {
    flex: 1;
    text-align: center;
}

.hero h1 {
    color: white;
    margin-bottom: 1rem;
    font-size: 3.5rem;
}

.tagline {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-image {
    display: none;
}

.hero-visual {
    font-size: 10rem;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero {
        padding: 60px 20px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* ==========================================
   FEATURES SECTION
   ========================================== */

.features {
    padding: 80px 20px;
    background: var(--dark);
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--secondary);
    background: rgba(255, 165, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ==========================================
   CONCEPT SECTION
   ========================================== */

.concept {
    padding: 80px 20px;
    background: var(--dark);
}

.concept-content h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.concept-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.conception-point {
    background: var(--light);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.conception-point h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.conception-point p {
    color: var(--text);
}

/* ==========================================
   QUICK STATS
   ========================================== */

.quick-stats {
    display: none;
}

/* ==========================================
   PAGE HEADER
   ========================================== */

.page-header {
    background: var(--dark-secondary);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 2px solid var(--primary);
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

/* ==========================================
   STATS PAGE
   ========================================== */

.stats-page {
    padding: 40px 20px;
}

.stats-section {
    background: var(--dark-secondary);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.stats-section h2 {
    color: var(--secondary);
    margin-bottom: 1.2rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.6rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    color: var(--text);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    background: rgba(255, 165, 0, 0.1);
    box-shadow: var(--shadow-lg);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.stat-large {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.stat-subtext {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.progress-bar {
    background: var(--border);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

.status.good {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

/* Maps List */

.maps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.map-item {
    background: var(--light);
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid var(--text-light);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    color: var(--text);
}

.map-item.active {
    border-left-color: var(--primary);
    background: rgba(255, 165, 0, 0.15);
    box-shadow: var(--shadow);
}

.map-status {
    background: var(--primary);
    color: #000;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}

.map-item.active .map-status {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.map-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.map-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
}

/* Metrics Grid */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.metric-box {
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid var(--border);
    color: var(--text);
}

.metric-box h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.chart-placeholder {
    height: 150px;
    background: var(--dark);
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.usage-bar {
    background: var(--border);
    height: 30px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.usage-fill {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 6px;
}

.latency-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.latency-value {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: bold;
}

.latency-status {
    color: var(--success);
    font-weight: 600;
}

/* Bandwidth Display */
.bandwidth-display {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
}

.bandwidth-item {
    background: var(--dark);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 15px 25px;
    text-align: center;
    flex: 1;
    min-width: 100px;
    transition: all 0.3s ease;
}

.bandwidth-item:hover {
    border-color: var(--primary);
    background: rgba(255, 165, 0, 0.05);
}

.bandwidth-value {
    display: block;
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 5px;
}

.bandwidth-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.metric-info {
    margin: 1rem 0 0 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Info Grid */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-box {
    background: var(--light);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--primary);
    color: var(--text);
}

.info-label {
    font-weight: 600;
    color: var(--text);
}

.info-value {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Config Grid */

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.config-box {
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid var(--border);
    color: var(--text);
}

.config-box h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.config-box ul {
    list-style: none;
}

.config-box li {
    padding: 8px 0;
    color: var(--text);
    font-weight: 500;
}

/* ==========================================
   TEAM PAGE
   ========================================== */

.team-section {
    padding: 60px 20px;
}

.team-intro {
    background: var(--light);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 60px;
    box-shadow: var(--shadow);
    text-align: center;
    border-left: 5px solid var(--primary);
}

.team-intro h2 {
    color: var(--primary);
}

.team-intro p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text);
}

.section-title {
    color: var(--primary);
    text-align: center;
    margin: 50px 0 30px 0;
    font-size: 2rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.team-member {
    background: var(--light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 5px solid var(--primary);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 165, 0, 0.1);
}

.member-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.team-member h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.member-bio {
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 0.95rem;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.skill-tag {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #000;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Team Values */

.team-values {
    background: var(--dark);
    padding: 60px 0;
    margin: 60px 0;
}

.team-values h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 50px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background: var(--light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background: rgba(255, 165, 0, 0.1);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--text);
}

/* Team CTA */

.team-cta {
    background: var(--dark-secondary);
    color: white;
    padding: 60px 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 60px;
    border: 2px solid var(--primary);
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   PLAYERS SECTION
   ========================================== */

.players-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

.players-counter {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    color: #000;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.counter-number {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.counter-label {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.95;
}

.players-list {
    background: var(--light);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    max-height: 500px;
    overflow-y: auto;
}

.players-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.players-table tbody {
    display: block;
}

.player-row {
    display: grid;
    grid-template-columns: 60px 1fr 100px;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    align-items: center;
    transition: all 0.2s ease;
    color: var(--text);
}

.player-row:hover {
    background: rgba(255, 165, 0, 0.1);
}

.player-row:last-child {
    border-bottom: none;
}

.player-rank {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
}

.player-name {
    color: var(--text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-ping {
    text-align: right;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    padding: 5px 10px;
    background: var(--dark);
}

.ping-excellent {
    color: var(--success);
}

.ping-good {
    color: var(--primary);
}

.ping-fair {
    color: var(--warning);
}

.no-players {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

.loading {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-light);
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .players-container {
        grid-template-columns: 1fr;
    }
    
    .player-row {
        grid-template-columns: 50px 1fr 80px;
        padding: 12px 15px;
        gap: 10px;
    }
    
    .players-list {
        max-height: 300px;
    }
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--dark);
    color: white;
    padding: 60px 20px 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .features-grid,
    .team-grid,
    .stats-grid,
    .metrics-grid,
    .config-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        padding: 20px;
    }
    
    .stats-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    
    .logo-text {
        display: none;
    }
    
    .nav-menu {
        gap: 0.5rem;
        font-size: 0.85rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ==========================================
   LANGUAGE SELECTOR
   ========================================== */

.nav-lang {
    margin-left: auto;
}

.lang-toggle {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px;
    border-radius: 8px;
    border: 2px solid var(--primary);
}

.lang-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: var(--primary);
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}

.lang-btn.active:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}
