/* =========================================
   STYLE GLOBAL - SERVEUR MINECRAFT
   Fichier unifié regroupant header, footer,
   index, et scores.
========================================= */

/* --- 1. RESET & GLOBALS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    /* Gris très sombre façon Deepslate/Roche */
    background-color: #1a1a1a; 
    color: #F3F4F6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* --- 2. HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    position: fixed;
    top: 0;
    width: 100%;
    /* Même fond que le body pour fondre le header */
    background-color: #1a1a1a; 
    z-index: 9999;
    /* Bordure noire brute */
    border-bottom: 3px solid #000000; 
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo {
    width: 40px;
    height: auto;
    /* Effet pixel art basique si tu mets une petite image */
    image-rendering: pixelated; 
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

header nav {
    display: flex;
    align-items: center;
    gap: 50px;
}

header nav a {
    cursor: pointer;
    color: #9CA3AF;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

header nav a:hover {
    /* Vert Emeraude / Minecraft au survol */
    color: #55FF55; 
}

.header-selected {
    color: #55FF55 !important;
}

/* Le bouton de contact (ou "Rejoindre") */
.contact-btn {
    /* Vert Creeper */
    background-color: #4CAF50; 
    color: #FFFFFF !important;
    padding: 10px 22px;
    /* Pas d'arrondi, style bloc */
    border-radius: 0px; 
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    /* Bordure verte plus foncée en bas pour un mini effet 3D */
    border-bottom: 3px solid #2E7D32; 
    transition: background 0.2s;
}

.contact-btn:hover {
    background-color: #45a049;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    display: block;
    transition: 0.3s;
}

.burger {
    display: none;
    position: absolute;
    top: 0;
    height: 100vh;
    right: -100%;
    width: 100%;
    background-color: #1a1a1a;
    flex-direction: column;
    padding: 120px 30px;
    gap: 25px;
    transition: 0.3s ease;
    z-index: -1;
}

.burger a {
    text-decoration: none;
    color: #F3F4F6;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
}

.burger .contact-btn {
    text-align: center;
    width: max-content;
}

.burger-active {
    right: 0;
}

@media (max-width: 768px) {
    header nav {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .burger {
        display: flex;
    }
}

/* --- 3. FOOTER --- */
footer {
    width: 100%;
    background-color: #1a1a1a;
    color: #F3F4F6;
    margin-top: auto;
    border-top: 3px solid #000000;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    flex: 1;
}

footer h3 {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #55FF55;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

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

footer ul li {
    margin-bottom: 12px;
}

footer ul li a {
    color: #9CA3AF;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

footer ul li a:hover {
    color: #55FF55;
}

.footer-desc {
    color: #9CA3AF;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 350px;
}

footer hr {
    border: none;
    border-top: 2px solid #2b2b2b;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    color: #6B7280;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 2.5rem;
        padding: 40px 20px;
    }

    .footer-desc {
        max-width: 100%;
    }

    footer hr {
        width: calc(100% - 40px);
    }
}


/* Style des icônes réseaux sociaux (Footer) */
footer .social {
    margin-top: 20px;
}

footer .social div {
    display: flex;
    gap: 15px; /* Espace entre chaque logo */
}

footer .social div a {
    text-decoration: none; /* Enlève le soulignement natif des liens */
}

footer .social div i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    font-size: 1.5rem; /* Taille de l'icône */
    background-color: #2b2b2b; /* Fond gris roche */
    color: #F3F4F6; /* Couleur de l'icône (blanc cassé) */
    border: 3px solid #000000; /* Bordure noire style bloc Minecraft */
    border-radius: 0px; /* On garde l'aspect carré */
    transition: all 0.2s ease;
}

/* Effet au survol de la souris */
footer .social div a:hover i {
    background-color: #4CAF50; /* Devient vert Creeper/Herbe */
    color: #1a1a1a; /* L'icône devient foncée pour bien ressortir */
    transform: translateY(-3px); /* Petit effet de saut */
}

/* --- 4. BOUTONS & ELEMENTS COMMUNS --- */
.btn-play,
.btn-secondary {
    padding: 12px 24px;
    font-weight: 700;
    text-decoration: none;
    /* Style bloc carré */
    border-radius: 0px; 
    font-size: 1rem;
    transition: 0.2s;
}

.btn-play {
    background-color: #4CAF50;
    color: white;
    border-bottom: 3px solid #2E7D32;
}

.btn-play:hover {
    background-color: #45a049;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 3px solid #374151;
}

.btn-secondary:hover {
    border-color: #55FF55;
    color: #55FF55;
}


/* Tableaux globaux (Scores) */
.table-wrapper {
    /* Gris légèrement plus clair que le fond */
    background-color: #2b2b2b; 
    /* Bordure noire épaisse façon GUI Minecraft */
    border: 3px solid #000000; 
    border-radius: 0px;
    overflow-x: auto;
    margin-bottom: 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background-color: #1a1a1a;
    color: #9CA3AF;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 18px 20px;
    border-bottom: 3px solid #000000;
}

td {
    padding: 16px 20px;
    border-bottom: 1px solid #374151;
    font-size: 1rem;
    font-weight: 500;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #333333;
}

/* --- 5. ACCUEIL (index.css) --- */
.hero-section {
    padding-top: 140px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.season-tag {
    background-color: #55FF55;
    color: #000;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 0px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 20px 0;
    text-transform: uppercase;
}

.hero-content h1 .highlight {
    color: #55FF55;
}

.hero-content p {
    font-size: 1.1rem;
    color: #9CA3AF;
    margin-bottom: 30px;
    max-width: 500px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-visual img {
    max-width: 80%;
    /* Pour un rendu net des pixels si l'image est petite */
    image-rendering: pixelated; 
}


.features-section {
    margin-bottom: 80px;
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-card {
    display: flex;
    background-color: #2b2b2b;
    border: 3px solid #000000;
    border-radius: 0px;
    overflow: hidden;
    transition: 0.2s;
}

.feature-card:hover {
    border-color: #4CAF50;
}

.card-text {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.card-text p {
    color: #9CA3AF;
    margin-bottom: 25px;
    line-height: 1.6;
}

.card-text a {
    color: #55FF55;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
}

.card-text a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-actions {
        justify-content: center;
    }

    .feature-card {
        flex-direction: column;
    }
}


/* --- 6. PAGE SCORES (scores.php) --- */
.main-content {
    padding-top: 140px;
    padding-bottom: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.main-content h1 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.main-content h1 span {
    color: #55FF55;
}

.subtitle {
    color: #9CA3AF;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.player-name {
    font-weight: 700;
    color: white;
}

.badge-pos {
    background-color: #1a1a1a;
    color: #55FF55;
    padding: 4px 10px;
    border-radius: 0px;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 1px;
    border: 1px solid #374151;
}

/* =========================================
   RESPONSIVE FIXES
========================================= */

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

.main-content {
    width: 100%;
    box-sizing: border-box;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-wrapper table {
    min-width: 520px;
}

@media (max-width: 480px) {
    .main-content h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    th,
    td {
        padding: 10px 8px;
        font-size: 0.82rem;
    }
}