/* --- IMPORTATION DES POLICES --- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&family=Montserrat:wght@700;800&display=swap');

:root {
    --mc-green: #52a535;
    --mc-green-hover: #468e2d;
    --mc-dark-bg: #1b1b1b;
    --mc-nav-bg: #252525;
    --mc-body-bg: #f2f2f2;
    --text-main: #333333;
    --text-light: #777777;
    --border-color: #e2e2e2;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* --- RÉGLAGES DE BASE --- */
* { box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    background-color: var(--mc-body-bg);
    color: var(--text-main);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- EN-TÊTE (HEADER) --- */
/* --- TOPBAR STYLE MINECRAFT.FR --- */
.top-bar { background: #000; height: 40px; }







header {



background-color: var(--mc-dark-bg);



padding: 40px 0;



text-align: center;



}







.logo-placeholder {



color: white;



font-size: 50px;



font-weight: 800;



text-transform: uppercase;



letter-spacing: -2px;



}



.logo-placeholder span { color: var(--mc-green); }







/* Navigation avec Dropdown */



nav {



background: var(--mc-green);



border-bottom: 4px solid #3e8028;



position: sticky;



top: 0;



z-index: 1000;



}



.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; }



nav ul { list-style: none; margin: 0; padding: 0; display: flex; }



nav ul li { position: relative; }



nav ul li a {



display: block;



color: white;



padding: 18px 25px;



font-weight: 700;



text-transform: uppercase;



font-size: 14px;



}



nav ul li a:hover { background: var(--mc-green-hover); }

/* ========================= */
/*  DROPDOWN MENU TOPBAR AVANCÉ */
/* ========================= */

/* Flèche pour indiquer le sous-menu */
nav ul li.has-dropdown > a::after {
    content: " ▼";
    font-size: 10px;
    margin-left: 5px;
}

/* Dropdown menu */
nav ul li .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--mc-nav-bg);
    min-width: 220px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--mc-green);
    z-index: 999;
}

/* Affichage au survol pour desktop */
nav ul li:hover .dropdown {
    display: block;
}

/* Dropdown items */
nav ul li .dropdown li a {
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    color: #eee;
    display: block;
}

/* Hover sur item dropdown */
nav ul li .dropdown li a:hover {
    background: #2f2f2f;
    color: var(--mc-green);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        display: none;
    }
    nav ul.show {
        display: flex;
    }
    nav ul li {
        width: 100%;
    }
    nav ul li .dropdown {
        position: relative;
        top: 0;
        left: 0;
        border-top: none;
        box-shadow: none;
    }
}


/* --- STRUCTURE PRINCIPALE --- */
.main-container {
    max-width: 1100px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: 1fr 320px; /* Layout 70% / 30% */
    gap: 30px;
    padding: 0 15px;
}

/* --- SECTION ARTICLES (GRILLE) --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.card:hover { transform: translateY(-3px); transition: transform 0.2s; }

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-content { padding: 20px; flex-grow: 1; }

.category-tag {
    background: var(--mc-green);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.card h2 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.card h2 a:hover { color: var(--mc-green); }

.read-more {
    display: inline-block;
    color: var(--mc-green);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
}

.read-more:hover { border-bottom: 2px solid var(--mc-green); }

/* --- CONTENU DE L'ARTICLE (PAGE SEULE) --- */
.article-content {
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

.description-box {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    background: #f8f8f8;
    padding: 20px;
    border-left: 5px solid var(--mc-green);
    margin: 20px 0;
}

.article-content h2 {
    font-family: 'Montserrat', sans-serif;
    color: #222;
    border-bottom: 3px solid var(--mc-green);
    padding-bottom: 5px;
    margin-top: 30px;
}

/* --- SIDEBAR --- */
.sidebar-box {
    background: white;
    padding: 20px;
    border-top: 4px solid var(--mc-green); /* Style Minecraft.fr */
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 15px;
    color: #222;
}

.version-list { list-style: none; padding: 0; margin: 0; }

.version-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.version-tag {
    background: #f1f1f1;
    color: #444;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 11px;
}

/* --- FOOTER --- */
footer {
    background: var(--mc-dark-bg);
    color: #bbb;
    padding: 60px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 6px solid var(--mc-green);
}

/* --- RESPONSIVE --- */
@media (max-width: 950px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
}