/* Variables */
:root {
    --primary-color: #37ff8b;
    --secondary-color: #2c3e50;
    --dark-bg: #1a1a1a;
    --light-bg: #2d2d2d;
    --text-light: #ffffff;
    --text-dark: #333333;
    --minecraft-font: 'VT323', monospace;
    --body-font: 'Poppins', sans-serif;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    background-image: url('https://th.bing.com/th/id/R.dce302884680fb7b0b71a90186dc82f1?rik=P8bq0l7P9Psy%2bA&riu=http%3a%2f%2fgetwallpapers.com%2fwallpaper%2ffull%2fb%2f3%2fe%2f789698-wallpapers-of-minecraft-2560x1440-hd-1080p.jpg&ehk=1RsPKRX8nOkcECSwt8TuZmBrt4dWJk08gQDj78IiL6U%3d&risl=&pid=ImgRaw&r=0');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.85);
    z-index: -1;
}

/* Header */
header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

h1 {
    font-family: var(--minecraft-font);
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-family: var(--minecraft-font);
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

/* Sections */
.rule-section {
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.rule-section h2 {
    font-family: var(--minecraft-font);
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rule-section h2 i {
    font-size: 1.8rem;
}

/* Cartes de règles */
.rule-card {
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(55, 255, 139, 0.2);
}

.rule-card h3 {
    color: var(--primary-color);
    font-family: var(--minecraft-font);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.rule-card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
    border-top: 2px solid var(--primary-color);
}

.social-links {
    margin-top: 1rem;
}

.social-icon {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: 1rem;
        padding: 0.3rem 0.8rem;
    }

    .rule-section {
        padding: 1rem;
        margin: 1rem;
    }

    .rule-section h2 {
        font-size: 1.6rem;
    }

    .rule-card {
        padding: 1rem;
    }

    .rule-card h3 {
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rule-section {
    animation: fadeIn 0.5s ease-out forwards;
}

.rule-section:nth-child(1) { animation-delay: 0.1s; }
.rule-section:nth-child(2) { animation-delay: 0.2s; }
.rule-section:nth-child(3) { animation-delay: 0.3s; }
.rule-section:nth-child(4) { animation-delay: 0.4s; }
.rule-section:nth-child(5) { animation-delay: 0.5s; } 