/* Reset simple */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #0f1216;
    color: #f5f5f5;
    line-height: 1.6;
}

/* Containers & sections */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 64px 0;
}

.section-light {
    background: #151920;
}

.section-dark {
    background: #10131a;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    text-align: center;
}

.section-intro {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
    color: #cbd5f5;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 12, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #222838;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    height: 32px;
    width: 32px;
    object-fit: contain;
}

.logo span {
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Navigation */

.main-nav {
    display: flex;
    gap: 16px;
}

.main-nav a {
    color: #d1d5f5;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
    background: #1f2937;
    color: #ffffff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #e5e7eb;
    font-size: 1.4rem;
    cursor: pointer;
}

/* Hero */

.hero {
    background: radial-gradient(circle at top, #1f2937 0, #020617 60%);
    padding: 80px 0 64px;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 32px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #d1d5f5;
    margin-bottom: 20px;
}

.server-info {
    margin-bottom: 20px;
}

.server-ip-block {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #020617;
    border-radius: 999px;
    border: 1px solid #1f2937;
}

.server-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.server-ip {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95rem;
    padding: 2px 6px;
    border-radius: 6px;
    background: #111827;
}

.copy-feedback {
    font-size: 0.85rem;
    color: #4ade80;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.server-details {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    color: #9ca3af;
}

.server-details span {
    padding: 4px 8px;
    background: #020617;
    border-radius: 999px;
    border: 1px solid #1f2937;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.hero-image img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid #1f2937;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

/* Boutons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #020617;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #111827;
    color: #e5e7eb;
    border: 1px solid #374151;
}

.btn-secondary:hover {
    background: #020617;
}

.btn-outline {
    background: transparent;
    color: #e5e7eb;
    border: 1px solid #4b5563;
}

.btn-outline:hover {
    background: #111827;
}

/* Grids */
.rules-grid-regles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(1000px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.features-grid,
.rules-grid,
.votes-grid,
.wiki-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.features-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 50fr));
    gap: 20px;
    margin-top: 24px;
}

.feature-card,
.rule-card,
.vote-card,
.wiki-card,
.contact-card {
    background: #020617;
    border-radius: 12px;
    padding: 16px 18px;
    border: 1px solid #1f2937;
}

.feature-card h3,
.rule-card h3,
.vote-card h3,
.wiki-card h3,
.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-card p,
.rule-card p,
.vote-card p,
.wiki-card p,
.contact-card p,
.section-intro {
    font-size: 0.95rem;
}

.rule-card ul,
.wiki-card ul,
.vote-card ul,
.contact-card ol {
    margin-left: 18px;
    font-size: 0.95rem;
}

.rule-card ul li,
.wiki-card ul li,
.vote-card ul li,
.contact-card ol li {
    margin-bottom: 4px;
}

.small-text {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 8px;
}

/* Footer */

.site-footer {
    background: #020617;
    border-top: 1px solid #111827;
    padding: 16px 0;
}

.footer-content {
    font-size: 0.9rem;
    color: #9ca3af;
    text-align: center;
}

.footer-sub {
    display: block;
    font-size: 0.8rem;
}

.footer-sub2 {
    display: block;
    font-size: 0.8rem;
    color: #f50404;
}

.footer-right a {
    color: #9ca3af;
    text-decoration: none;
    margin-left: 10px;
    font-size: 0.85rem;
}

.footer-right a:hover {
    color: #e5e7eb;
}

/* ============================
   MINI-WIKI — LAYOUT
   ============================ */

.wiki-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    margin-top: 40px;
}

/* Menu latéral */
.wiki-menu {
    background: #020617;
    border: 1px solid #1f2937;
    padding: 18px;
    border-radius: 12px;
    position: sticky;
    top: 90px;
    height: fit-content;
}

.wiki-menu h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #d1d5f5;
}

/* ============================
   MENU DÉROULANT
   ============================ */

.wiki-dropdown {
    margin-bottom: 12px;
}

.wiki-drop-btn {
    width: 100%;
    text-align: left;
    background: #134280;
    border: 1px solid #1f2937;
    color: #e5e7eb;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.15s ease;
}

.wiki-drop-btn:hover {
    background: #1f2937;
    border-color: #374151;
}

/* Contenu déroulant */
.wiki-drop-content {
    display: none;
    flex-direction: column;
    margin-top: 6px;
    padding-left: 6px;
}

.wiki-drop-content a {
    display: block;
    padding: 8px 10px;
    margin: 4px 0;
    background: #404348;
    border: 1px solid #1f2937;
    border-radius: 6px;
    text-decoration: none;
    color: #cbd5f5;
    font-size: 0.9rem;
    transition: 0.15s ease;
}

.wiki-drop-content a:hover {
    background: #1f2937;
}

/* Contenu */
.wiki-content h2 {
    margin-top: 40px;
    font-size: 1.6rem;
    color: #f5f5f5;
}

.wiki-card {
    background: #404348;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 18px;
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 900px) {
    .wiki-layout {
        grid-template-columns: 1fr;
    }

    .wiki-menu {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
}

/* Responsive global */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 72px;
    }

    .main-nav {
        position: absolute;
        top: 64px;
        right: 0;
        left: 0;
        background: #020617;
        flex-direction: column;
        align-items: center;
        padding: 12px 0;
        gap: 8px;
        display: none;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        border-radius: 0;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .header-content {
        justify-content: space-between;
    }

    .server-ip-block {
        width: 100%;
        justify-content: space-between;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-image img {
        cursor: pointer;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .hero-image img:hover {
        transform: scale(1.02);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    }
}
/* Cache les sections du wiki */
.wiki-section {
    display: none;
}

/* Section visible */
.wiki-section.active {
    display: block;
}
.wiki-block {
    display: none;
}

.wiki-block.active {
    display: block;
}
.wiki-image {
	width: 100%;
	max-width: 100%;
	border-radius: 12px;
	margin-bottom: 16px;
	border: 1px solid #1f2937;
	display: block;
}