:root { 
    --bg-dark: #1a1a1a;
    --bg-gradient: linear-gradient(135deg, #3a7a22 0%, #1e4611 100%);
    --panel-bg: rgba(0, 0, 0, 0.6);
    --text-main: #ffffff;
    --text-muted: #cccccc;
    --mc-green: #55aa33; 
    --mc-dark-green: #3a7a22; 
    --mc-grey: #c6c6c6; 
    --mc-dark-grey: #333333; 
    --mc-border: #000000;
    --accent: #ffaa00;
    --mc-dirt: #866043;
}

body.light-theme {
    --bg-gradient: linear-gradient(135deg, #a8e0a8 0%, #7dbd7d 100%);
    --panel-bg: rgba(255, 255, 255, 0.9);
    --text-main: #222222;
    --text-muted: #555555;
    --mc-dark-grey: #e0e0e0; 
    --mc-border: #bbbbbb;
}

body { 
    margin: 0; padding: 0; 
    font-family: 'Press Start 2P', cursive; 
    background: var(--bg-gradient);
    background-attachment: fixed; 
    color: var(--text-main); 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

header {
    background: var(--mc-dark-grey);
    border-bottom: 4px solid var(--mc-border);
    padding: 30px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    text-align: center;
}

.logo {
    font-size: 28px;
    color: var(--mc-green);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 25px;
    text-shadow: 3px 3px 0px #000;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.logo:hover { 
    color: #fff; 
    text-shadow: 3px 3px 0px var(--mc-green), 6px 6px 0px #000;
}

nav { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    flex-wrap: wrap;
}

.mc-button { 
    background: var(--mc-grey); 
    border: 3px solid #000; 
    color: #333; 
    padding: 12px 20px; 
    text-decoration: none; 
    font-size: 10px; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    text-shadow: none; 
    box-shadow: 0 4px 0 #888;
    position: relative;
    overflow: hidden;
}

.mc-button:hover { 
    background: #fff; 
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #888;
}

.mc-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #888;
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 60px 20px; 
    flex: 1;
}

.mc-panel { 
    background: var(--panel-bg); 
    border: 4px solid var(--mc-border); 
    padding: 40px; 
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3); 
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
}

.mc-input { 
    background: rgba(0,0,0,0.8); 
    border: 3px solid var(--mc-border); 
    color: #0f0; 
    font-family: 'Press Start 2P', cursive; 
    padding: 15px; 
    width: 100%; 
    box-sizing: border-box; 
    margin-bottom: 25px; 
    font-size: 10px; 
}

.step-box { 
    background-color: var(--mc-dirt); 
    border: 4px solid #4e342e; 
    padding: 15px; 
    margin-bottom: 15px; 
    font-size: 12px; 
    color: white; 
    text-shadow: 1px 1px #000;
}

.step-number { 
    background: #000; 
    color: #fff; 
    padding: 5px; 
    margin-right: 10px; 
    border: 2px solid #fff; 
}

.gallery { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.gallery-item { 
    background: var(--panel-bg); 
    border: 4px solid var(--mc-border); 
    padding: 15px; 
    text-align: center; 
    transition: all 0.3s ease; 
    border-radius: 4px;
}

.gallery-item:hover { 
    transform: translateY(-10px); 
    border-color: var(--mc-green); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.4); 
}

.mc-img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
    border: 3px solid #000; 
    margin-bottom: 15px; 
}

footer { 
    background: var(--mc-dark-grey);
    border-top: 4px solid var(--mc-border);
    padding: 50px 20px;
    font-size: 10px;
    color: var(--text-muted);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: var(--mc-green);
    font-size: 12px;
    margin-bottom: 20px;
}

.footer-section a {
    color: var(--text-main);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    opacity: 0.7;
    transition: 0.2s;
}

.footer-section a:hover { opacity: 1; color: var(--mc-green); }

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--mc-border);
    opacity: 0.5;
    font-size: 8px;
}

/* ANIMATIONS & XP */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-element { animation: float 3s ease-in-out infinite; }

.xp-bar-container {
    background: #333;
    border: 3px solid #000;
    height: 20px;
    width: 100%;
    margin-top: 10px;
    position: relative;
}

.xp-bar-fill {
    background: var(--mc-green);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease-out;
}

.rules-list { list-style: none; padding: 0; }
.rule-item {
    background: rgba(0,0,0,0.4);
    border-left: 5px solid var(--mc-green);
    padding: 15px;
    margin-bottom: 15px;
    font-size: 11px;
    transition: 0.3s;
}
.rule-item:hover { background: rgba(0,0,0,0.6); padding-left: 25px; border-left-color: var(--accent); }
/* STYLE LIVE MAP */
.map-container {
    position: relative;
    width: 100%;
    height: 600px;
    border: 6px solid var(--mc-border);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    background: #000;
    overflow: hidden;
    border-radius: 4px;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border: 3px solid var(--mc-green);
    color: white;
    font-size: 10px;
    pointer-events: none; /* Permet de cliquer à travers l'overlay */
    z-index: 10;
}
