* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0f;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated waves background — style NXE Xbox 360 */
.bg-waves {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background: linear-gradient(180deg, #0b3d0b 0%, #1a5c1a 50%, #0b3d0b 100%);
    overflow: hidden;
}

.bg-waves::before,
.bg-waves::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -50%;
    width: 200%;
    height: 60%;
    background: rgba(16, 124, 16, 0.15);
    border-radius: 40%;
    animation: wave1 12s linear infinite;
}

.bg-waves::after {
    height: 40%;
    background: rgba(10, 60, 10, 0.2);
    animation: wave2 18s linear infinite;
    bottom: -10%;
}

@keyframes wave1 {
    0% { transform: translateX(0) rotate(0deg); }
    100% { transform: translateX(-25%) rotate(360deg); }
}

@keyframes wave2 {
    0% { transform: translateX(0) rotate(0deg); }
    100% { transform: translateX(25%) rotate(-360deg); }
}

header, main, footer {
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 60px 20px 40px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.logo .xbox { color: #107c10; }

header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #107c10, #6abf4b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #aaa;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.card {
    background: rgba(20, 20, 30, 0.85);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.xbox-card { border-top: 3px solid #107c10; }

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.xbox-badge { background: #107c10; color: #fff; }

.card h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.card-desc {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.features span {
    background: rgba(255,255,255,0.06);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #ccc;
}

.version-info {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.3s, transform 0.2s;
    cursor: pointer;
}

.btn:hover { transform: scale(1.03); }

.btn-xbox {
    background: #107c10;
    color: #fff;
}

.btn-xbox:hover { background: #0e6b0e; }

.install-guide, .dashboard {
    background: rgba(20, 20, 30, 0.85);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
}

.install-guide h2, .dashboard h2 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: #90ee90;
}

.install-guide ol {
    padding-left: 24px;
    line-height: 2;
    color: #ccc;
}

.install-guide strong { color: #fff; }

.compat-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(16, 124, 16, 0.15);
    border: 1px solid rgba(16, 124, 16, 0.4);
    border-radius: 10px;
    color: #c9e8c9;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== Page historique des mises à jour ===== */
.back-link {
    display: inline-block;
    margin-top: 18px;
    padding: 8px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.back-link:hover { background: rgba(16, 124, 16, 0.3); color: #fff; }

.changelog { display: flex; flex-direction: column; gap: 24px; }

.version-card {
    background: rgba(20, 20, 30, 0.85);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 4px solid #107c10;
}

.version-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.version-badge {
    background: #107c10;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 4px 14px;
    border-radius: 8px;
    letter-spacing: 1px;
}

.version-date {
    color: #888;
    font-size: 0.9rem;
}

.version-code {
    margin-left: auto;
    color: #666;
    font-size: 0.8rem;
    font-family: Consolas, monospace;
    background: rgba(255,255,255,0.05);
    padding: 3px 10px;
    border-radius: 6px;
}

.version-card h2 { font-size: 1.5rem; margin-bottom: 8px; }

.version-summary {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.changes { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.changes li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255,255,255,0.03);
    padding: 12px 14px;
    border-radius: 10px;
}

.change-tag {
    flex-shrink: 0;
    display: inline-block;
    min-width: 70px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
}

li.added .change-tag { background: rgba(16, 124, 16, 0.35); color: #90ee90; }
li.fixed .change-tag { background: rgba(0, 112, 204, 0.35); color: #7ec4ff; }
li.improved .change-tag { background: rgba(200, 160, 0, 0.3); color: #ffe082; }

.changes strong { color: #fff; display: block; margin-bottom: 4px; }
.changes p { color: #aaa; font-size: 0.88rem; line-height: 1.55; }
.changes code {
    background: rgba(0,0,0,0.4);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #90ee90;
    font-family: Consolas, monospace;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn-ghost {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ccc;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.dash-item {
    background: rgba(255,255,255,0.04);
    padding: 16px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-label {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dash-value {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 30px 20px;
    color: #555;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    header h1 { font-size: 2rem; }
    .cards { grid-template-columns: 1fr; }
}

/* ===== Galerie de captures d'écran ===== */
.shots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-bottom: 34px;
}

.shot {
    background: rgba(20, 20, 30, 0.85);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 3px solid #107c10;
    border-radius: 16px;
    padding: 10px 10px 4px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.shot:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}

.shot-frame {
    display: block;
    width: 100%;
    padding: 0;
    border: 2px solid rgba(16, 124, 16, 0.35);
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    cursor: zoom-in;
    line-height: 0;
}

.shot-frame img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.35s;
}

.shot:hover .shot-frame img { transform: scale(1.03); }

.shot-caption {
    text-align: center;
    padding: 10px 6px 6px;
    color: #aaa;
    font-size: 0.82rem;
    line-height: 1.45;
}

.shot-caption strong {
    display: block;
    color: #90ee90;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.cta-block {
    background: rgba(20, 20, 30, 0.85);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.cta-block h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #90ee90;
}

.cta-block p {
    color: #aaa;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(4px);
}

.lightbox.open { display: flex; }

.lightbox img {
    max-width: 94vw;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 24px;
    font-size: 2.4rem;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

