:root {
    --bg: #0a0a0a;
    --accent: #9f7aff;
    --accent-bright: #c5a5ff;
    --text: #eeeeee;
    min-height: 100%;
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg);
}


nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;          /* taille de base */
}

/* Sur petits écrans */
@media (max-width: 767px) {
    nav a {
        font-size: 3dvw;     /* s’adapte un peu à la largeur */
    }
}

/* Sur grands écrans */
@media (min-width: 768px) {
    nav a {
        font-size: 1.05rem;   /* taille fixe et propre */
    }
}

nav a:hover {
    color: var(--accent);
}

.content-flex {
    height: 85vh;
    display: flex;
    flex-direction: column;
    /* flex-wrap: wrap; */
}

.content, .content-flex {
    flex: 1 0 auto;          /* Le contenu prend tout l’espace disponible */
}

.hero {
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('../assets/images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: 4.8rem;
    margin-bottom: 1rem;
}

.content {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 2rem;
}

/* ==================== GAMES PAGE ==================== */

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Smol screens */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Tablette */
@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop moyen → 3 colonnes */
@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Grand écran → 4 colonnes */
@media (min-width: 1400px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==================== HEADER ==================== */
header {
    background: #111;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg);
    color: var(--text);
    padding: 3rem 1rem 2rem;
    margin-top: auto;
    border-top: 1px solid #222;
    text-align: center;

    flex-shrink: 0;          /* Le footer ne se compresse pas */
    margin-top: auto;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.footer-nav a {
    color: #ddd;
    margin: 0 1.2rem;
    text-decoration: none;
    font-weight: 500;
}

.footer-nav a:hover {
    color: var(--accent);
}

.support-title {
    color: var(--accent);
    margin-bottom: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.support a {
    margin: 0 12px;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.support a:hover {
    opacity: 1;
}

.support img {
    /* Rend l'icône blanche */
    filter: brightness(0) invert(1);           
    /* Pour du violet : */
    /* filter: brightness(0) saturate(100%) invert(48%) sepia(88%) saturate(749%) hue-rotate(246deg) brightness(92%) contrast(96%); */
}

/* .support svg path { */
    /* fill: var(--accent); */
/* } */

/* .support a:hover svg path { */
    /* fill: var(--accent-bright); */
/* } */

/* Responsive - plus beau sur grand écran */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .support {
        text-align: right;
    }
}

/* ==================== OTHER ==================== */

