:root {
    --gold: #ffd100;
    --dark: #121212;
    --card: #1e1e1e;
    --text: #ffffff;
    --gray: #a0a0a0;
    --new: #4caf50; /* Vert pour nouveautés */
    --fix: #ff9800; /* Orange pour fix */
    --blue: #2196f3; /* Bleu pour update */
}

/* Reset & Base */
body { margin: 0; font-family: 'Inter', sans-serif; background-color: var(--dark); color: var(--text); scroll-behavior: smooth; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- MODAL (Gallerie) --- */
.modal {
    display: none; position: fixed; z-index: 99999; left: 0; top: 0;
    width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.95);
    align-items: center; justify-content: center; overflow: hidden;
}
.modal-content {
    max-width: 90%; max-height: 90%;
    border: 2px solid #ffd100; box-shadow: 0 0 50px rgba(0,0,0,1);
    object-fit: contain;
}
.close, .prev, .next {
    position: absolute; color: #ffd100; font-size: 60px; font-weight: bold;
    cursor: pointer; z-index: 100000; user-select: none; transition: 0.2s;
    text-shadow: 2px 2px 5px #000;
}
.close { top: 20px; right: 40px; }
.prev { left: 40px; top: 50%; transform: translateY(-50%); }
.next { right: 40px; top: 50%; transform: translateY(-50%); }
.close:hover, .prev:hover, .next:hover { color: white; transform: scale(1.1) translateY(-50%); }
.close:hover { transform: scale(1.1); }

/* --- NAVIGATION & DROPDOWN --- */
nav { padding: 20px 0; background: rgba(18, 18, 18, 0.95); border-bottom: 1px solid #333; position: sticky; top: 0; z-index: 1000; }
nav .container { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-family: 'Cinzel', serif; font-size: 1.5rem; font-weight: bold; letter-spacing: 2px;
    text-decoration: none; color: var(--text); transition: 0.3s;
}
.logo:hover { opacity: 0.8; transform: scale(1.02); }
.gold { color: var(--gold); }

.links { display: flex; align-items: center; }
.links a { color: var(--text); text-decoration: none; margin-left: 25px; text-transform: uppercase; font-size: 0.9rem; transition: 0.3s; }
.links a:hover { color: var(--gold); }

/* Dropdown */
.dropdown { position: relative; display: inline-block; margin-left: 25px; }
.dropbtn {
    background-color: transparent; color: var(--text); padding: 10px; font-size: 0.9rem; border: none;
    cursor: pointer; font-family: 'Inter', sans-serif; text-transform: uppercase; font-weight: bold;
    text-decoration: none; display: inline-block;
}
.dropdown:hover .dropbtn { color: var(--gold); }
.dropdown-content {
    display: none; position: absolute; background-color: var(--card); min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5); z-index: 1001; border: 1px solid #333;
    border-radius: 4px; top: 100%;
}
.dropdown-content a {
    color: var(--text); padding: 12px 16px; text-decoration: none; display: block;
    text-align: left; margin-left: 0; border-bottom: 1px solid #333;
}
.dropdown-content a:hover { background-color: #333; color: var(--gold); }
.dropdown:hover .dropdown-content { display: block; }
.arrow { font-size: 0.7rem; margin-left: 5px; }

/* --- HERO SECTION --- */
.hero { padding: 220px 0; text-align: center; background: linear-gradient(rgba(18, 18, 18, 0.5), rgba(18, 18, 18, 0.85)), url('hero-bg.png'); background-size: cover; background-position: center; background-attachment: fixed; }
.hero h1 { font-family: 'Cinzel', serif; font-size: 4.5rem; margin: 0; }
.hero p { color: #f0f0f0; font-size: 1.3rem; max-width: 750px; margin: 10px auto 40px; text-shadow: 1px 1px 10px rgba(0,0,0,1); }

/* BOUTON JAUNE */
.cta {
    background: var(--gold); color: #000; padding: 16px 40px; text-decoration: none; font-weight: bold;
    border-radius: 4px; text-transform: uppercase; transition: 0.3s; display: inline-block; border: 2px solid var(--gold);
}
.cta:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255, 209, 0, 0.4); background: #fff; border-color: #fff;}

/* --- SECTION CHANGELOG --- */
.changelog-box {
    background: var(--card); border: 1px solid #333; border-radius: 8px;
    padding: 30px; max-height: 400px; overflow-y: auto; /* Scroll si trop long */
}
.log-entry { margin-bottom: 30px; border-bottom: 1px solid #333; padding-bottom: 20px; }
.log-entry:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.log-header { display: flex; justify-content: space-between; margin-bottom: 15px; align-items: center; }
.log-version { font-family: 'Cinzel', serif; color: var(--gold); font-size: 1.4rem; font-weight: bold; }
.log-date { color: var(--gray); font-size: 0.9rem; font-style: italic; }
.log-list { list-style: none; padding-left: 0; }
.log-list li { padding: 5px 0; padding-left: 20px; position: relative; color: #ccc; }
/* Puces de couleur pour le changelog */
.log-list li::before { content: "•"; position: absolute; left: 0; font-size: 1.2rem; line-height: 1rem; }
.log-list li.new::before { color: var(--new); }
.log-list li.fix::before { color: var(--fix); }
.log-list li.update::before { color: var(--blue); }

/* --- GALERIE & CONTENU --- */
.section-title { margin-top: 80px; font-family: 'Cinzel', serif; color: var(--gold); font-size: 2.2rem; border-left: 4px solid var(--gold); padding-left: 20px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin: 30px 0 80px; }
.gallery-item { background: var(--card); border: 1px solid #333; padding: 12px; border-radius: 8px; text-align: center; cursor: pointer; transition: 0.3s; }
.gallery-item img { width: 100%; border-radius: 5px; }
.gallery-item p { color: var(--gold); margin-top: 10px; font-weight: bold; }
.gallery-item:hover { border-color: var(--gold); transform: translateY(-5px); }

/* --- AUTRES --- */
.card { background: var(--card); padding: 40px; border-radius: 8px; border: 1px solid #333; }
.features li { padding: 8px 0; border-bottom: 1px solid #2a2a2a; list-style: none; }
.features li::before { content: "◈"; color: var(--gold); margin-right: 10px; }
.download-btn { display: inline-block; background: var(--gold); color: #000; text-decoration: none; padding: 12px 30px; border-radius: 4px; font-weight: bold; margin-top: 20px; transition: 0.3s;}
.download-btn:hover { background: #fff; transform: scale(1.02); }
.dark-bg { background: #0a0a0a; padding: 100px 0; border-top: 1px solid #333; }
footer { padding: 60px 0; text-align: center; color: var(--gray); border-top: 1px solid #333; }