/* ========================================
   POLICES ET VARIABLES CSS
======================================== */

@font-face {
    font-family: 'DMSans';
    src: url('../fonts/DMSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {  
    /* Variables de couleurs pour une cohérence visuelle */
    --primary-color: #f6b553;
    --primary-hover: #ffca7a;
    --secondary-color: #7289da;
    --background-overlay: rgba(0, 0, 0, 0.6);
    --background-overlay-light: rgba(0, 0, 0, 0.4);
    --text-light: #ffffff;
    --text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    --border-radius: 15px;
    --border-radius-small: 8px;
    --transition-speed: 0.3s;
    --backdrop-blur: blur(10px);
    
    /* Variables pour les animations */
    --slide-up-distance: 30px;
    --scale-hover: 1.05;
}

/* ========================================
   STYLES DE BASE
======================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DMSans', sans-serif;
    background-image: url('../images/background_2.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
    color: var(--text-light);
    transition: background-image 0.5s ease;
    overflow-x: hidden;
}

/* Pseudo-élément pour assurer que le background couvre toute la page */
html {
    min-height: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/background_2.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(3px);
    z-index: -2;
}

/* Pseudo-élément pour les transitions d'arrière-plan fluides */
body::before {  
    content: '';  
    position: fixed;  
    top: 0;  
    left: 0;  
    right: 0;  
    bottom: 0;  
    background-size: cover;  
    background-position: center center;  
    background-repeat: no-repeat;  
    opacity: 0;  
    transition: opacity 0.5s ease-in-out;  
    z-index: -1;  
    pointer-events: none;
}  

body.changing-background::before {  
    opacity: 1;  
}

/* Amélioration de la lisibilité pour tous les textes */
h1, h2, h3, h4, h5, h6, p {
    text-shadow: var(--text-shadow);
}

/* ========================================
   NAVIGATION PAR POINTS
======================================== */

.section-nav {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 8px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(246, 181, 83, 0.3);
}

.nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    display: block;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.nav-dot:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(246, 181, 83, 0.8),
                0 0 10px rgba(0, 0, 0, 0.8);
}

.nav-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(246, 181, 83, 0.8),
                0 0 10px rgba(0, 0, 0, 0.8);
    animation: pulseActive 2s infinite;
}

@keyframes pulseActive {
    0%, 100% {
        box-shadow: 0 0 20px rgba(246, 181, 83, 0.8),
                    0 0 10px rgba(0, 0, 0, 0.8);
    }
    50% {
        box-shadow: 0 0 30px rgba(246, 181, 83, 1),
                    0 0 15px rgba(0, 0, 0, 0.9);
    }
}

.nav-tooltip {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.nav-dot:hover .nav-tooltip {
    opacity: 1;
}

/* ========================================
   CONTENU PRINCIPAL
======================================== */

.main-content {
    margin-top: 0; /* Pas de navbar, donc pas de marge */
    scroll-snap-type: y mandatory;
}

/* Sections pleine page */
.hero-section,
.about-section, 
.features-section, 
.games-showcase, 
.community-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 90%;
}

/* ========================================
   SECTION HÉROS
======================================== */

.hero-section {
    padding: 0;
    text-align: center;
    position: relative;
}

.hero-section .container {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUpFadeIn 1s ease;
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(var(--slide-up-distance));
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin-bottom: 30px;
    transition: all 0.5s ease;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 20px rgba(246, 181, 83, 0.3));
    position: relative;
    animation: logoEntrance 1s ease-out, logoFloat 6s ease-in-out infinite 1s;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-30px);
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5))
                drop-shadow(0 0 0px rgba(246, 181, 83, 0));
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5))
                drop-shadow(0 0 20px rgba(246, 181, 83, 0.3));
    }
}

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

.logo:hover {
    transform: scale(1.08) translateY(-5px);
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 40px rgba(246, 181, 83, 0.6))
            drop-shadow(0 0 60px rgba(246, 181, 83, 0.4));
}

.main-title {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.8rem;
    color: #e0e0e0;
    margin-bottom: 30px;
    font-weight: 400;
}

.intro-text {
    max-width: 600px;
    margin: 0 auto 40px;
}

.intro-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.v3-announcement {
    background: rgba(246, 181, 83, 0.1);
    border: 1px solid rgba(246, 181, 83, 0.3);
    border-radius: var(--border-radius-small);
    padding: 20px;
    margin-top: 25px;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px rgba(246, 181, 83, 0.3); }
    to { box-shadow: 0 0 20px rgba(246, 181, 83, 0.6); }
}

/* Informations V3 sous les boutons */
.v3-info {
    margin-top: 30px;
    text-align: center;
}

.v3-note {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius-small);
    padding: 15px 20px;
    font-size: 1rem;
    color: #d0d0d0;
    border-left: 4px solid var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.info-icon {
    font-size: 1.2rem;
}

/* ========================================
   WIDGET DE STATISTIQUES EN DIRECT (HERO)
======================================== */

.hero-stats-widget {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: stretch; /* Force toutes les cartes à avoir la même hauteur */
    flex-wrap: wrap;
    margin-top: 35px;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    flex: 1 1 auto; /* Distribue l'espace équitablement */
    min-width: 220px; /* Largeur minimale cohérente */
    max-width: 280px; /* Largeur maximale pour équilibrer avec les boutons */
}

.hero-stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(246, 181, 83, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 
                0 0 20px rgba(246, 181, 83, 0.15);
    background: rgba(0, 0, 0, 0.6);
}

.hero-stat-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(246, 181, 83, 0.3));
    transition: transform 0.3s ease;
}

.hero-stat-card:hover .hero-stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.hero-stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), #ffca7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.hero-stat-card:hover .hero-stat-number {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(246, 181, 83, 0.3));
}

.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Indicateur de statut serveur pour la hero section */
.hero-server-status {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6c757d;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-server-status.online {
    background: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.6);
    animation: pulseGreen 3s ease-in-out infinite;
}

.hero-server-status.offline {
    background: #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.6);
}

/* Animation fade in up pour le widget */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   BOUTONS D'ACTION
======================================== */

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch; /* Assure que tous les boutons ont la même hauteur */
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Centre le contenu horizontalement */
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex: 1 1 auto; /* Les boutons partagent l'espace équitablement */
    max-width: 280px; /* Largeur maximale pour ne pas être trop larges */
    min-width: 260px; /* Largeur minimale pour des boutons uniformes */
    white-space: nowrap; /* Empêche le texte de se casser sur plusieurs lignes */
}

/* Icônes SVG dans les boutons */
.btn-icon {
    height: 24px;
    width: auto;
    max-width: 32px;
    transition: transform 0.3s ease, filter 0.3s ease;
    object-fit: contain;
    filter: brightness(0) invert(0); /* Rend les logos noirs pour le bouton primary */
}

.btn-secondary .btn-icon {
    filter: brightness(0) invert(1); /* Rend les logos blancs pour le bouton secondary */
}

.btn-secondary:hover .btn-icon {
    filter: brightness(0) invert(0); /* Devient noir au hover quand le fond devient doré */
}

.btn-primary:hover .btn-icon,
.btn-secondary:hover .btn-icon {
    transform: scale(1.15);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
    color: #000;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 25px rgba(246, 181, 83, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
}

/* Bouton désactivé/maintenance */
.btn-disabled {
    background: linear-gradient(45deg, #6c757d, #868e96) !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
    border: 2px solid #6c757d !important;
}

.btn-disabled:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.btn-disabled::before {
    display: none !important;
}

/* ========================================
   SECTIONS DE CONTENU
======================================== */

.about-section, .features-section, .games-showcase, .community-section {
    padding: 0;
    position: relative;
}

.about-section, .features-section, .games-showcase, .community-section .container {
    padding: 40px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-section {
    background: rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-light);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
    margin: 20px auto;
    border-radius: 2px;
}

/* ========================================
   SECTION À PROPOS
======================================== */

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #e0e0e0;
    text-align: center !important;
}

/* État du développement - Timeline */
.development-status {
    /* background: linear-gradient(135deg, rgba(246, 181, 83, 0.1), rgba(246, 181, 83, 0.05)); */
    border-radius: 20px;
    padding: 40px 30px;
    margin-top: 40px;
    /* border: 2px solid rgba(246, 181, 83, 0.3); */
    text-align: center;
    /* backdrop-filter: blur(10px); */
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.1); */
    position: relative;
    overflow: visible;
}

/* .development-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(246, 181, 83, 0.1), transparent);
    animation: shimmer 3s infinite;
} */

.development-status h4 {
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 1.6rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(246, 181, 83, 0.3);
    position: relative;
}

.development-status h4::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Timeline horizontale */
.timeline {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 20px 60px;
    gap: 20px;
}

/* Ligne de base de la timeline - cachée pour un design plus épuré */
.timeline-line {
    display: none;
}

/* Ligne de progression animée - cachée */
.timeline-progress {
    display: none;
}

@keyframes progressGrow {
    from { width: 0; }
    to { width: 75%; }
}

/* Élément de la timeline */
.timeline-item {
    flex: none;
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    z-index: 3;
}

/* Contenu de chaque étape */
.timeline-content {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 20px 15px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    min-height: 140px;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.timeline-content:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(246, 181, 83, 0.3);
}

.timeline-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 8px rgba(246, 181, 83, 0.5));
}

.timeline-content h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.timeline-content p {
    color: #d0d0d0;
    font-size: 0.9rem;
    margin: 0;
}

.timeline-date {
    display: block;
    margin-top: 8px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(246, 181, 83, 0.4);
}

/* Point en bas de la carte */
.timeline-dot {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(246, 181, 83, 0.4);
}

/* États des items */
.timeline-item.completed .timeline-dot {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(246, 181, 83, 0.6);
}

.timeline-item.completed .timeline-content {
    border-color: rgba(246, 181, 83, 0.3);
}

.timeline-item.active .timeline-dot {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    border-color: #4CAF50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
    animation: pulse 2s infinite;
}

.timeline-item.active .timeline-content {
    border-color: rgba(76, 175, 80, 0.4);
    background: rgba(76, 175, 80, 0.1);
}

/* ========================================
   SECTION FONCTIONNALITÉS
======================================== */

.features-section {
    background: rgba(0, 0, 0, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-card {
    background: rgba(0, 0, 0, 0.4);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(246, 181, 83, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(246, 181, 83, 0.2);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(246, 181, 83, 0.5));
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: #d0d0d0;
    line-height: 1.6;
}

/* ========================================
   SECTION JEUX POPULAIRES
======================================== */

.games-showcase {
    background: rgba(0, 0, 0, 0.3);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.game-showcase-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.game-showcase-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.game-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.game-showcase-card:hover .game-image img {
    transform: scale(1.1);
}

.game-info {
    padding: 25px;
}

.game-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.game-info p {
    color: #d0d0d0;
    margin-bottom: 15px;
    line-height: 1.6;
}

.game-category {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ========================================
   SECTION COMMUNAUTÉ
======================================== */

.community-section {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.community-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(246, 181, 83, 0.02) 50%, transparent 70%);
    pointer-events: none;
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
    margin-top: 30px;
}

.community-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-item {
    position: relative;
    text-align: center;
    padding: 30px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Point indicateur de statut serveur */
.server-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6c757d; /* Gris par défaut (chargement) */
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.server-indicator.online {
    background: #28a745;
    box-shadow: 0 0 12px rgba(40, 167, 69, 0.6);
    animation: pulseGreen 3s ease-in-out infinite;
}

.server-indicator.offline {
    background: #dc3545;
    box-shadow: 0 0 12px rgba(220, 53, 69, 0.6);
}

.server-indicator.maintenance {
    background: #ffc107;
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.6);
    animation: pulseYellow 3s ease-in-out infinite;
}

@keyframes pulseGreen {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes pulseYellow {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(246, 181, 83, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 
                0 0 20px rgba(246, 181, 83, 0.2),
                inset 0 1px 1px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), #ffca7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    transition: all 0.4s ease;
    position: relative;
    line-height: 1;
    text-shadow: none;
}

.stat-item:hover .stat-number {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(246, 181, 83, 0.4));
}

/* Style spécial pour l'affichage joueurs/max */
.stat-number.players-ratio {
    font-family: 'DMSans', sans-serif; /* Même police que les autres stats */
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
    font-size: 3rem; /* Même taille que les autres */
}

/* Indicateurs de remplissage du serveur */
.stat-number.server-busy {
    background: linear-gradient(135deg, #ff9800, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number.server-full {
    background: linear-gradient(135deg, #f44336, #ff5722);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
    color: rgba(255, 255, 255, 0.95);
}

.community-text {
    padding: 30px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.community-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.community-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.community-features li {
    padding: 15px 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    position: relative;
    padding-left: 35px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.community-features li:last-child {
    border-bottom: none;
}

.community-features li:hover {
    color: rgba(255, 255, 255, 0.95);
    transform: translateX(5px);
}

.community-features li::before {
    content: '✨';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.community-features li:hover::before {
    transform: translateY(-50%) scale(1.2);
    text-shadow: 0 0 10px rgba(246, 181, 83, 0.6);
}

/* ========================================
   PIED DE PAGE
======================================== */

.footer {
    background: rgba(0, 0, 0, 0.5);
    background-size: 300% 300%;
    padding: 50px 0 20px;
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
    /* backdrop-filter: blur(10px); */
    /* box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3); */
    position: relative;
    overflow: hidden;
    animation: gradientShift 15s ease infinite;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    color: #d0d0d0;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #d0d0d0;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    color: #d0d0d0;
    text-decoration: none;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-small);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
}

/* ========================================
   CLASSES UTILITAIRES
======================================== */

.highlight-text {
    color: var(--primary-color);
    font-weight: 600;
}

.bold-text {
    font-weight: 600;
}

.highlight-text-discord {
    color: var(--secondary-color);
    font-weight: 600;
}

.hidden {  
    opacity: 0 !important;
    transform: translateY(-20px) !important;
    pointer-events: none !important;
    transition: all 0.5s ease-in-out !important;
}

/* ========================================
   ANIMATIONS GLOBALES
======================================== */

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media screen and (max-width: 1024px) {
    .community-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .community-stats {
        flex-direction: row;
        justify-content: space-around;
    }
}

@media screen and (max-width: 768px) {
    .main-content {
        margin-top: 0;
        scroll-snap-type: none; /* Désactive le scroll snap sur mobile */
    }
    
    .section-nav {
        right: 15px;
        gap: 12px;
        padding: 12px 6px;
    }
    
    .nav-dot {
        width: 12px;
        height: 12px;
    }
    
    .nav-tooltip {
        display: none;
    }
    
    .hero-section,
    .about-section, 
    .features-section, 
    .games-showcase, 
    .community-section {
        min-height: auto; /* Permet aux sections d'être plus courtes sur mobile */
        padding: 40px 0;
    }
    
    .construction-banner {
        padding: 30px 0;
    }
    
    .construction-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .construction-text {
        font-size: 1rem;
        gap: 15px;
    }
    
    .main-badge {
        font-size: 0.95rem;
        padding: 6px 16px;
    }
    
    .date-badge {
        font-size: 1rem;
        padding: 8px 20px;
    }
    
    .countdown {
        gap: 4px;
        padding: 12px 8px;
        flex-wrap: nowrap;
    }
    
    .countdown-value {
        font-size: 1.2rem;
        min-width: 42px;
        padding: 8px 6px;
    }
    
    .countdown-label {
        font-size: 0.55rem;
    }
    
    .countdown-separator {
        font-size: 1rem;
    }
    
    .hero-section .container {
        padding: 30px 20px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.4rem;
    }
    
    .intro-text p {
        font-size: 1.1rem;
    }
    
    .v3-announcement {
        padding: 15px;
        font-size: 1rem;
    }
    
    .v3-note {
        flex-direction: column;
        text-align: center;
        padding: 12px 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Widget stats hero responsive */
    .hero-stats-widget {
        flex-direction: column;
        gap: 12px;
        margin-top: 25px;
        padding: 0 10px;
    }
    
    .hero-stat-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        min-width: unset;
        padding: 12px 20px;
    }
    
    .hero-stat-icon {
        font-size: 1.5rem;
    }
    
    .hero-stat-number {
        font-size: 1.3rem;
    }
    
    .hero-stat-label {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .development-status {
        padding: 25px 15px;
    }
    
    /* Timeline devient verticale sur mobile */
    .timeline {
        flex-direction: column;
        padding: 20px 10px;
        gap: 30px;
    }
    
    .timeline-line {
        top: 20px;
        bottom: 20px;
        left: 30px;
        right: auto;
        width: 4px;
        height: auto;
    }
    
    .timeline-progress {
        top: 20px;
        left: 30px;
        width: 4px;
        height: 70%;
    }
    
    @keyframes progressGrow {
        from { height: 0; }
        to { height: 70%; }
    }
    
    .timeline-item {
        flex-direction: row;
        align-items: center;
        padding-left: 60px;
    }
    
    .timeline-content {
        margin-bottom: 0;
        margin-left: 20px;
        min-height: auto;
        width: 200px;
        flex: none;
    }
    
    .timeline-content-final {
        margin-bottom: 0;
        margin-left: 20px;
        min-height: auto;
        width: 200px;
        flex: none;
        padding: 20px 15px;
    }
    
    .timeline-content-final .timeline-icon {
        font-size: 2.5rem;
    }
    
    .timeline-content-final h5 {
        font-size: 1.2rem;
    }
    
    .timeline-dot {
        position: absolute;
        left: 22px;
    }
    
    .timeline-item.final .timeline-dot {
        left: 18px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .community-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

/* ========================================
   MODALE LISTE DES JOUEURS
======================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: rgba(20, 20, 20, 0.95);
    border-radius: var(--border-radius);
    border: 2px solid rgba(246, 181, 83, 0.3);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(246, 181, 83, 0.3);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px 30px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.players-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.players-count {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.server-status-badge {
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 20px;
    background: #28a745;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-status-badge.offline {
    background: #dc3545;
}

.players-list-container {
    min-height: 200px;
}

.loading-spinner {
    text-align: center;
    padding: 50px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.player-item {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    animation: playerFadeIn 0.3s ease;
}

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

.player-item:hover {
    border-color: rgba(246, 181, 83, 0.4);
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.player-name {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-name::before {
    content: '👤';
    font-size: 1rem;
}

.player-id {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

.no-players {
    text-align: center;
    padding: 50px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.no-players-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero-stat-card.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-stat-card.clickable:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(246, 181, 83, 0.6);
}

@media screen and (max-width: 480px) {
    .modal-content {
        max-width: calc(100vw - 40px);
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .players-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section .container {
        padding: 20px 15px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .game-info {
        padding: 20px;
    }
    
    .about-section, .features-section, .games-showcase, .community-section {
        padding: 60px 0;
    }
}
