/* 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.75rem;
    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: #2c2c2c;
    border-radius: 0px;
    padding: 16px 18px;
    border: 5px solid #000;
    box-shadow: 0 9px 0 #1a1a1a;
}
.vote-card {
	background: #020617;
	border-radius: 0px;
    padding: 16px 18px;
    border: 5px solid #000;
    box-shadow: 0 9px 0 #1a1a1a;
}
.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: 5px solid #000;
	box-shadow: 0 9px 0 #1a1a1a;
    border-radius: 0px;
    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;
}
/* Conteneur podium */
#top3-container {
    margin-top: 30px;
    padding: 20px;
    background: #020617; /* Dark */
    border-radius: 12px;
    border: 1px solid #1f2937;
    text-align: center;
}

#top3-container h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #d1d5f5;
}

/* Structure podium */
#top3-content {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 25px;
}

/* Slot podium */
.podium-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}

/* Avatar */
.podium-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #3498db;
    margin-bottom: 10px;
}

/* Nom */
.podium-name {
    font-size: 18px;
    font-weight: bold;
    color: #f5f5f5;
}

/* Votes */
.podium-votes {
    font-size: 16px;
    color: #cbd5f5;
    margin-bottom: 10px;
}

/* Marches du podium */
.podium-step {
    width: 100%;
    border-radius: 6px 6px 0 0;
}

/* Hauteurs podium */
.step1 {
    height: 120px;
    background: linear-gradient(180deg, #ffd700, #b8860b); /* Or */
}

.step2 {
    height: 90px;
    background: linear-gradient(180deg, #c0c0c0, #8d8d8d); /* Argent */
}

.step3 {
    height: 70px;
    background: linear-gradient(180deg, #cd7f32, #8b4513); /* Bronze */
}

/* Bordures avatars podium */
.rank1 .podium-avatar img {
    border-color: #ffd700;
}

.rank2 .podium-avatar img {
    border-color: #c0c0c0;
}

.rank3 .podium-avatar img {
    border-color: #cd7f32;
}

/* Responsive */
@media (max-width: 600px) {
    #top3-content {
        flex-direction: column;
        align-items: center;
    }
    .podium-slot {
        width: 100%;
    }
}
/* ============================
   STYLE MINECRAFT IMMERSIF — BOUTONS DE VOTE
   ============================ */

.vote-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

/* Effet bruit Minecraft (léger grain pixelisé) */
@keyframes pixelNoise {
    0% { background-position: 0 0; }
    100% { background-position: 64px 64px; }
}

/* Boutons façon bloc Minecraft */
.vote-card ul li a {
    display: block;
    padding: 14px 20px;
    background: #2c2c2c url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGNgYAAAAAMAASsJTYQAAAAASUVORK5CYII=") repeat;
    background-size: 4px 4px;
    animation: pixelNoise 4s steps(4) infinite;
    border: 4px solid #000;
    border-radius: 0; /* pixelisé */
    color: #e0e0e0;
    font-family: "Minecraftia", sans-serif;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: 0.12s ease-out;
    box-shadow: 0 6px 0 #1a1a1a; /* effet bouton Minecraft */
    position: relative;
}

/* Effet survol Minecraft */
.vote-card ul li a:hover {
    background-color: #3c8527;
    border-color: #57a832;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 0 #1a1a1a, 0 0 12px #57a832;
    filter: brightness(1.15);
}

/* Outline blanc façon menu Minecraft */
.vote-card ul li a:hover::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 3px solid #ffffff;
    pointer-events: none;
}

/* Effet clic (pression du bouton) */
.vote-card ul li a:active {
    transform: translateY(0);
    box-shadow: 0 3px 0 #1a1a1a;
}
/* ============================
   NAVIGATION — STYLE MINECRAFT MODERNE
   ============================ */

.main-nav a {
    background: #2c2c2c url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGNgYAAAAAMAASsJTYQAAAAASUVORK5CYII=") repeat;
    background-size: 4px 4px;
    border: 4px solid #000;
    border-radius: 0;
    font-family: "Minecraftia", sans-serif;
    padding: 8px 14px;
    color: #e0e0e0 !important;
    box-shadow: 0 5px 0 #1a1a1a;
    transition: 0.12s ease-out;
    position: relative;
}

.main-nav a:hover {
    background-color: #3c8527;
    border-color: #57a832;
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #1a1a1a;
    filter: brightness(1.15);
}

/* Outline blanc Minecraft */
.main-nav a:hover::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 3px solid #ffffff;
    pointer-events: none;
}
/* ============================
   WIKI — BOUTONS PRINCIPAUX (Minecraft immersif)
   ============================ */

.wiki-drop-btn {
    background: #2c2c2c url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGNgYAAAAAMAASsJTYQAAAAASUVORK5CYII=") repeat;
    background-size: 4px 4px;
    border: 4px solid #000;
    border-radius: 0;
    color: #e0e0e0;
    font-family: "Minecraftia", sans-serif;
    padding: 12px 14px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 6px 0 #1a1a1a;
    transition: 0.12s ease-out;
    position: relative;
	animation: pixelNoise 4s steps(4) infinite;
}

/* Hover Minecraft */
.wiki-drop-btn:hover {
    background-color: #3c8527;
    border-color: #57a832;
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #1a1a1a;
    filter: brightness(1.15);
}

/* Outline blanc façon menu Minecraft */
.wiki-drop-btn:hover::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 3px solid #ffffff;
    pointer-events: none;
}
/* ============================
   WIKI — SOUS-MENUS (Minecraft immersif)
   ============================ */

.wiki-drop-content a {
    background: #2c2c2c url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGNgYAAAAAMAASsJTYQAAAAASUVORK5CYII=") repeat;
    background-size: 4px 4px;
    border: 3px solid #000;
    border-radius: 0;
    color: #e0e0e0;
    font-family: "Minecraftia", sans-serif;
    padding: 10px 12px;
    margin: 4px 5px;
    text-decoration: none;
    display: block;
    box-shadow: 0 5px 0 #1a1a1a;
    transition: 0.12s ease-out;
    position: relative;
	animation: pixelNoise 4s steps(4) infinite;
}

/* Hover Minecraft */
.wiki-drop-content a:hover {
    background-color: #3c8527;
    border-color: #57a832;
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #1a1a1a;
    filter: brightness(1.15);
}

/* Outline blanc */
.wiki-drop-content a:hover::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 3px solid #ffffff;
    pointer-events: none;
}
/* ============================
   BOUTON "Comment nous rejoindre en jeu ?" — MINECRAFT IMMERSIF
   ============================ */

.btn-join {
    background: #2c2c2c url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGNgYAAAAAMAASsJTYQAAAAASUVORK5CYII=") repeat;
    background-size: 4px 4px;
    border: 4px solid #000;
    border-radius: 0;
    color: #e0e0e0 !important;
    font-family: "Minecraftia", sans-serif;
    padding: 14px 22px;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 0 #1a1a1a;
    transition: 0.12s ease-out;
    position: relative;
}

/* Hover Minecraft */
.btn-join:hover {
    background-color: #3c8527;
    border-color: #57a832;
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #1a1a1a;
    filter: brightness(1.15);
}

/* Outline blanc façon menu Minecraft */
.btn-join:hover::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 3px solid #ffffff;
    pointer-events: none;
}

/* Effet clic */
.btn-join:active {
    transform: translateY(0);
    box-shadow: 0 3px 0 #1a1a1a;
}
