/* Styles additionnels pour la page d'accueil et de connexion */
body {
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Quicksand', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(#333 1px, transparent 1px);
    background-size: 30px 30px;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

header {
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
    padding: 15px 30px;
    position: relative;
    border-bottom: 2px solid #FFA000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

#user-status {
    float: right;
    margin: 10px 0;
    color: #fff;
    display: flex;
    align-items: center;
}

#user-status span {
    margin-right: 15px;
    font-weight: 600;
}

.btn-logout,
.btn-login,
.btn-register {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.btn-register {
    background-color: #2196F3;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 50px;
    background: linear-gradient(45deg, #FFA000, #FF8F00);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.6em;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    border: 3px solid #FFD700;
    box-shadow: 
        0 8px 20px rgba(255, 160, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: cta-glow 2s ease-in-out infinite alternate;
}

@keyframes cta-glow {
    from { box-shadow: 0 8px 20px rgba(255, 160, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
    to { box-shadow: 0 12px 30px rgba(255, 160, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(255, 160, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover .btn-shine {
    left: 100%;
}

.btn-icon {
    font-size: 1.2em;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.secondary-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: rgba(45, 45, 45, 0.8);
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    border: 2px solid rgba(255, 160, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 160, 0, 0.2);
    border-color: #FFA000;
    color: #FFA000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 160, 0, 0.3);
}

.user-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding: 15px 25px;
    background: rgba(255, 160, 0, 0.1);
    border: 2px solid rgba(255, 160, 0, 0.3);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    animation: welcome-pulse 3s ease-in-out infinite;
}

@keyframes welcome-pulse {
    0%, 100% { border-color: rgba(255, 160, 0, 0.3); }
    50% { border-color: rgba(255, 160, 0, 0.6); }
}

.welcome-icon {
    font-size: 1.5em;
    filter: drop-shadow(0 0 5px rgba(255, 160, 0, 0.7));
}

.welcome-text {
    color: #FFA000;
    font-weight: 600;
    font-size: 1.1em;
    text-shadow: 0 0 10px rgba(255, 160, 0, 0.3);
}

.btn-logout:hover,
.btn-login:hover,
.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.btn-logout:hover,
.btn-login:hover {
    background-color: #388E3C;
}

.btn-play:active,
.btn-logout:active,
.btn-login:active,
.btn-register:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.home-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
}

/* Animated background elements */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #FFA000, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 160, 0, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, #FFD700, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 215, 0, 0.4), transparent);
    background-repeat: repeat;
    background-size: 150px 100px;
    animation: particles-float 20s linear infinite;
    opacity: 0.6;
}

@keyframes particles-float {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

.mining-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, 
        rgba(139, 69, 19, 0.3) 0%, 
        rgba(93, 64, 55, 0.2) 50%, 
        transparent 100%);
    opacity: 0.7;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    animation: hero-entrance 1.5s ease-out;
}

@keyframes hero-entrance {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.logo-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(255, 160, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: logo-pulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes logo-pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.game-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 160, 0, 0.7));
    transition: transform 0.3s ease;
    transform-origin: center;
    image-rendering: -webkit-optimize-contrast; /* Pour une meilleure netteté sur Chrome */
    image-rendering: crisp-edges; /* Pour Firefox */
}

.game-title {
    font-family: 'Cinzel', serif;
    font-size: 5em;
    font-weight: 700;
    color: #FFA000;
    text-shadow: 
        0 0 20px rgba(255, 160, 0, 0.6),
        0 0 40px rgba(255, 160, 0, 0.4),
        2px 2px 8px rgba(0, 0, 0, 0.8);
    margin: 0 0 20px;
    letter-spacing: 3px;
    line-height: 1.1;
    background: linear-gradient(45deg, #FFA000, #FFD700, #FFA000);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-shine 4s ease-in-out infinite;
}

@keyframes title-shine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.game-subtitle {
    font-size: 2em;
    color: #e0e0e0;
    margin: 0 0 50px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.9;
    line-height: 1.4;
}

/* Stats Showcase */
.stats-showcase {
    padding: 80px 20px;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-top: 3px solid #FFA000;
    border-bottom: 3px solid #FFA000;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 160, 0, 0.05);
    border-radius: 15px;
    border: 2px solid rgba(255, 160, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: #FFA000;
    box-shadow: 0 15px 30px rgba(255, 160, 0, 0.3);
}

.stat-number {
    font-size: 3.5em;
    font-weight: bold;
    color: #FFA000;
    text-shadow: 0 0 20px rgba(255, 160, 0, 0.5);
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
}

.stat-label {
    font-size: 1.2em;
    color: #e0e0e0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buildings Section */
.buildings-section {
    padding: 100px 20px;
    background: linear-gradient(to bottom, #1a1a1a, #2d2d2d, #1a1a1a);
}

.buildings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 60px;
}

.building-card {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.9), rgba(35, 35, 35, 0.9));
    border-radius: 20px;
    padding: 40px 30px;
    border: 2px solid rgba(255, 160, 0, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

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

.building-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    border-color: #FFA000;
    box-shadow: 
        0 20px 40px rgba(255, 160, 0, 0.2),
        0 0 30px rgba(255, 160, 0, 0.1);
}

.building-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(255, 160, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 160, 0, 0.3);
    transition: all 0.3s ease;
}

.building-card:hover .building-icon {
    background: rgba(255, 160, 0, 0.2);
    border-color: #FFA000;
    box-shadow: 0 0 20px rgba(255, 160, 0, 0.4);
}

.building-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 160, 0, 0.3));
}

.building-content h3 {
    color: #FFA000;
    font-size: 1.8em;
    margin: 0 0 15px;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 160, 0, 0.3);
}

.building-content p {
    color: #ccc;
    line-height: 1.6;
    margin: 0 0 20px;
    text-align: center;
    font-size: 1.1em;
}

.building-benefit {
    background: linear-gradient(45deg, #FFA000, #FFD700);
    color: #000;
    padding: 10px 20px;
    border-radius: 25px;
    text-align: center;
    font-weight: bold;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 160, 0, 0.3);
}

/* Resources Section */
.resources-section {
    padding: 100px 20px;
    background: linear-gradient(to right, #2d2d2d, #1a1a1a, #2d2d2d);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 60px auto 0;
}

.resource-item {
    background: rgba(45, 45, 45, 0.8);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    border: 2px solid rgba(255, 160, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.resource-item:hover {
    transform: translateY(-10px) rotateY(10deg);
    border-color: #FFA000;
    box-shadow: 0 15px 30px rgba(255, 160, 0, 0.3);
}

.resource-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 160, 0, 0.3));
    transition: all 0.3s ease;
}

.resource-item:hover img {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 20px rgba(255, 160, 0, 0.6));
}

.resource-name {
    display: block;
    color: #FFA000;
    font-weight: bold;
    font-size: 1.3em;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 160, 0, 0.3);
}

.resource-rarity {
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resource-rarity.common {
    background: rgba(150, 150, 150, 0.8);
    color: #fff;
}

.resource-rarity.uncommon {
    background: rgba(76, 175, 80, 0.8);
    color: #fff;
}

.resource-rarity.rare {
    background: rgba(33, 150, 243, 0.8);
    color: #fff;
}

.resource-rarity.legendary {
    background: linear-gradient(45deg, #9C27B0, #E91E63);
    color: #fff;
    animation: legendary-glow 2s ease-in-out infinite alternate;
}

@keyframes legendary-glow {
    from { box-shadow: 0 0 10px rgba(156, 39, 176, 0.5); }
    to { box-shadow: 0 0 20px rgba(233, 30, 99, 0.8); }
}

/* Enhanced Features Section */
.features-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 50px 50px, rgba(255, 160, 0, 0.1), transparent),
        radial-gradient(1px 1px at 150px 150px, rgba(255, 160, 0, 0.05), transparent);
    background-size: 200px 200px;
    opacity: 0.3;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 60px auto 0;
    position: relative;
    z-index: 2;
}

.section-title {
    width: 100%;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 2.5em;
    color: #FFA000;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #FFA000;
}

.feature-card {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.9), rgba(35, 35, 35, 0.9));
    border-radius: 20px;
    padding: 40px;
    border: 2px solid rgba(255, 160, 0, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    text-align: left;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 160, 0, 0.1), transparent);
    animation: feature-rotate 8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

@keyframes feature-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: #FFA000;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 160, 0, 0.2);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 3;
}

.feature-icon {
    background: linear-gradient(135deg, rgba(255, 160, 0, 0.2), rgba(255, 215, 0, 0.3));
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em;
    color: #FFA000;
    border: 3px solid rgba(255, 160, 0, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 160, 0, 0.2);
    flex-shrink: 0;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(255, 160, 0, 0.4), rgba(255, 215, 0, 0.5));
    border-color: #FFA000;
    box-shadow: 0 0 30px rgba(255, 160, 0, 0.4);
    transform: rotate(10deg) scale(1.1);
}

.feature-card h3 {
    color: #FFA000;
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 160, 0, 0.3);
    position: relative;
    z-index: 3;
}

.feature-card p {
    color: #ccc;
    line-height: 1.7;
    margin: 0 0 25px;
    font-size: 1.1em;
    position: relative;
    z-index: 3;
}

.feature-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 3;
}

.highlight {
    background: linear-gradient(45deg, rgba(255, 160, 0, 0.2), rgba(255, 215, 0, 0.3));
    color: #FFA000;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    border: 1px solid rgba(255, 160, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.highlight:hover {
    background: linear-gradient(45deg, rgba(255, 160, 0, 0.4), rgba(255, 215, 0, 0.5));
    border-color: #FFA000;
    transform: scale(1.05);
}

/* Community Section */
.community-section {
    padding: 100px 20px;
    background: linear-gradient(to bottom, #2d2d2d, #1a1a1a);
    text-align: center;
    border-top: 3px solid #FFA000;
}

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

.community-content h2 {
    font-family: 'Cinzel', serif;
    font-size: 3em;
    color: #FFA000;
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(255, 160, 0, 0.4);
}

.community-content p {
    font-size: 1.3em;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.6;
}

.community-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.discord-btn, .leaderboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.3s ease;
    border: 2px solid;
    position: relative;
    overflow: hidden;
}

.discord-btn {
    background: linear-gradient(45deg, #7289DA, #5865F2);
    color: white;
    border-color: #7289DA;
    box-shadow: 0 8px 20px rgba(114, 137, 218, 0.3);
}

.discord-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(114, 137, 218, 0.5);
    background: linear-gradient(45deg, #5865F2, #7289DA);
}

.leaderboard-btn {
    background: linear-gradient(45deg, #FFA000, #FFD700);
    color: #000;
    border-color: #FFA000;
    box-shadow: 0 8px 20px rgba(255, 160, 0, 0.3);
}

.leaderboard-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 160, 0, 0.5);
    background: linear-gradient(45deg, #FFD700, #FFA000);
}

.discord-icon {
    width: 24px;
    height: 24px;
}

.screenshot-section {
    padding: 60px 20px;
    text-align: center;
    background: #1a1a1a;
}

.screenshots-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.screenshot {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border: 3px solid #333;
    transition: all 0.3s ease;
    overflow: hidden;
}

.screenshot:hover {
    transform: scale(1.02);
    border-color: #FFA000;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.call-to-action {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    border-top: 3px solid #FFA000;
    border-bottom: 3px solid #FFA000;
    position: relative;
    overflow: hidden;
}

.call-to-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 160, 0, 0.1) 0%, transparent 50%);
    animation: cta-pulse 4s ease-in-out infinite;
}

@keyframes cta-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.call-to-action h2 {
    position: relative;
    z-index: 2;
}

.call-to-action .btn-play {
    position: relative;
    z-index: 2;
}

footer {
    background: linear-gradient(to bottom, #1a1a1a, #111);
    padding: 40px 20px;
    text-align: center;
    color: #777;
    font-size: 1em;
    border-top: 3px solid #FFA000;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #FFA000, transparent);
}

footer p {
    margin: 0;
}

/* Styles pour la page de connexion */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #2c2c2c;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.login-tabs {
    display: flex;
    margin-bottom: 20px;
}

.login-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    background-color: #444;
}

.login-tab.active {
    background-color: #666;
    font-weight: bold;
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #777;
    border-radius: 4px;
    background-color: #333;
    color: #eee;
}

.form-submit {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.error-message {
    color: #ff5555;
    margin-bottom: 15px;
}

.success-message {
    color: #55ff55;
    margin-bottom: 15px;
}

.footer-links {
    margin: 20px 0;
}

.footer-links a {
    color: #999;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FFA000;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .buildings-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .game-title {
        font-size: 3.5em;
    }
    
    .game-subtitle {
        font-size: 1.6em;
    }
    
    .hero-section {
        min-height: 90vh;
        padding: 40px 15px;
    }
    
    .btn-primary {
        font-size: 1.4em;
        padding: 18px 40px;
    }
    
    .secondary-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5em;
    }
    
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .community-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .discord-btn, .leaderboard-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 2.8em;
        letter-spacing: 1px;
    }
    
    .game-subtitle {
        font-size: 1.3em;
    }
    
    .btn-primary {
        font-size: 1.2em;
        padding: 15px 30px;
        gap: 10px;
    }
    
    .btn-secondary {
        font-size: 1em;
        padding: 10px 20px;
    }
    
    header {
        padding: 10px 15px;
    }
    
    #user-status {
        float: none;
        text-align: center;
        margin-top: 20px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        max-width: 250px;
    }
    
    .feature-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .community-content h2 {
        font-size: 2.2em;
    }
    
    .floating-particles {
        animation-duration: 30s;
    }
}

.dialog-content {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
}

.dialog-buttons {
    margin-top: 15px;
    text-align: right;
}

.dialog-buttons button {
    padding: 8px 15px;
    margin-left: 10px;
    background-color: #4CAF50;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
}

#login-required {
    text-align: center;
    margin: 50px auto;
    max-width: 600px;
    padding: 20px;
    background-color: #2c2c2c;
    border-radius: 8px;
}

#saves-list {
    margin: 15px 0;
    max-height: 300px;
    overflow-y: auto;
}

.save-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #444;
}

.load-save-btn {
    padding: 5px 10px;
    background-color: #4CAF50;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
}

/* Style Leaderboard */
.home-container table {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    font-size: 1.1em;
}
.home-container table th,
.home-container table td {
    padding: 12px;
    border: 1px solid #444;
}
.home-container table th {
    background-color: #222;
    color: #FFA000;
}
.home-container table tr:nth-child(even) {
    background-color: #1f1f1f;
}
.home-container table tr:hover {
    background-color: #333;
}



