/* --- RESET & VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --bg-main: #09090b; /* Noir très profond */
    --bg-card: #121217; /* Gris très sombre */
    --border-color: rgba(255, 255, 255, 0.05);
    --primary-violet: #8b5cf6; /* Violet d'accentuation */
    --text-white: #f4f4f5;
    --text-gray: #a1a1aa;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    line-height: 1.6;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo-img {
    height: 40px; /* Adapte cette valeur selon la taille de ton image */
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-white);
}

.btn-login {
    background-color: #5865F2; /* Couleur Discord */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login:hover {
    background-color: #4752C4;
}

/* --- HERO SECTION --- */
.hero {
    text-align: center;
    padding: 120px 20px;
    /* J'ai supprimé le radial-gradient qui faisait des pixels ici */
    background-color: transparent; 
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-style: italic;
}

.hero .highlight {
    /* Couleur unie, plus de dégradé ni d'ombre lourde */
    color: var(--primary-violet);
}

.hero p {
    color: var(--text-gray);
    max-width: 650px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--primary-violet);
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-violet);
    color: white;
}

/* --- CONTAINERS & GRIDS --- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 25px;
    background-color: var(--primary-violet);
    border-radius: 2px;
}

/* --- CATEGORY CARDS --- */
.grid-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.card-category {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card-category:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.4);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--text-white); /* Passage en blanc pour être plus neutre */
    margin-bottom: 25px;
}

.card-category h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.card-category p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.card-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.2s;
}

.card-category:hover .card-link {
    color: var(--primary-violet);
}

/* --- PRODUCT CARDS --- */
.grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-product {
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card-product:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
}

.product-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: #1a1a24; /* Fond neutre pour remplacer le placeholder fluo */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-product:hover .product-image img {
    transform: scale(1.05);
}

.badge, .badge-promo {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge { background-color: var(--primary-violet); color: white; }
.badge-promo { background-color: #ef4444; color: white; }

.product-info {
    padding: 25px;
}

.product-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.product-info .author {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-white);
}

.btn-buy {
    background-color: transparent;
    border: 1px solid var(--primary-violet);
    color: var(--primary-violet);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
}

.btn-buy:hover {
    background-color: var(--primary-violet);
    color: white;
}

/* --- FOOTER --- */
footer {
    padding: 60px 20px;
    margin-top: 50px;
    background-color: #050505;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 15px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    display: block;
}

.footer-logo:hover {
    opacity: 1;
}

footer p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
}