/* VARIABLES DE COULEURS */
:root {
    /* Thème Sombre (Par défaut) */
    --bg-main: #0f0f11;
    --bg-card: #1a1a1d;
    --bg-nav: rgba(0, 0, 0, 0.8);
    --text-main: #ffffff;
    --text-sub: #a0a0a5;
    --accent-red: #D90404; /* COULEUR DU LOGO */
    --border-color: #2a2a2e;
    --shadow: rgba(0, 0, 0, 0.5);
}

body.light-mode {
    /* Thème Clair */
    --bg-main: #f0f2f5;
    --bg-card: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.9);
    --text-main: #1a1a1a;
    --text-sub: #4b4b4b;
    --accent-red: #D90404; /* COULEUR DU LOGO */
    --border-color: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* GÉNÉRAL */
* { box-sizing: border-box; transition: background 0.3s, color 0.3s; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

/* NAVIGATION */
nav {
    padding: 15px 5%;
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-theme {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* HEADER */
header {
    padding: 150px 20px 80px;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.5), var(--bg-main)), url('https://hytale.com/static/images/media/screenshots/1.jpg');
    background-size: cover;
    background-position: center;
}

.logo-main {
    max-width: 400px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.5));
}

h1 { font-size: 3rem; margin: 0; letter-spacing: 3px; }
.subtitle { font-size: 1.2rem; color: var(--text-sub); margin-bottom: 40px; }

.status-box {
    border: 2px solid var(--accent-red);
    display: inline-block;
    padding: 12px 25px;
    background: rgba(217, 4, 4, 0.1); /* Version transparente du rouge logo */
    border-radius: 50px;
    margin-bottom: 30px;
}

.btn-red {
    display: inline-block;
    background: var(--accent-red);
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(217, 4, 4, 0.3); /* Ombre avec le rouge logo */
}

/* LAYOUT & CARDS */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

.row { display: flex; gap: 25px; margin-bottom: 25px; flex-wrap: wrap; }
.col { flex: 1; min-width: 320px; }

.card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow);
}

h2 { font-size: 1.3rem; color: var(--accent-red); margin-top: 0; }

.sub-item { margin-bottom: 20px; }
.sub-item strong { display: block; color: var(--text-main); font-size: 1.1rem; }

/* GALERIE */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.img-placeholder {
    background: #2a2a2e;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    border-radius: 5px;
    border: 1px dashed #444;
}

/* FOOTER & SPECIALS */
.center { text-align: center; }
.red-bg { background: var(--accent-red); border: none; }
.red-bg h2, .red-bg p { color: white; }

.btn-white {
    display: inline-block;
    background: white;
    color: var(--accent-red);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 20px;
}

.link-text { color: var(--accent-red); text-decoration: none; }

footer {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-sub);
    font-size: 0.85rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}