/* ============================================
   VARIABLES & COULEURS
   Modifie ici pour changer le thème global
   ============================================ */
:root {
    /* --- Couleurs principales --- */
    --blue:         #2d7ff9;
    --blue-dark:    #1b5fc1;
    --yellow-fluo:  #d4ff00;
    --pink:         #ff4da6;
    --pink-dark:    #cc2d7f;

    /* --- Fond & texte --- */
    --bg-body:      #121218;
    --bg-card:      #1a1a24;
    --bg-card-hover:#22222e;
    --text-primary: #e8e8ef;
    --text-muted:   #8888a0;
    --border-color: #2a2a3a;

    /* --- Rayons & ombres --- */
    --radius:       12px;
    --radius-btn:   10px;
    --shadow:       0 2px 12px rgba(0, 0, 0, 0.4);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* ============================================
   EN-TÊTE
   ============================================ */
header {
    text-align: center;
    padding: 3rem 1rem 2rem;
    background: linear-gradient(135deg, #0d0d14 0%, #1a1a2e 100%);
    border-bottom: 2px solid var(--border-color);
}

header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--blue), var(--pink), var(--yellow-fluo));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.subtitle {
    margin-top: 0.4rem;
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================
   CONTENU PRINCIPAL
   ============================================ */
main {
    flex: 1;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ============================================
   CARTES CATÉGORIES
   ============================================ */
.category {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease;
}

.category:hover {
    background-color: var(--bg-card-hover);
}

.category h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cat-icon {
    font-size: 1.4rem;
}

/* ============================================
   GRILLE DE BOUTONS
   ============================================ */
.buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.9rem;
}

/* ============================================
   BOUTONS — BASE
   ============================================ */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-btn);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    letter-spacing: 0.2px;
}

.btn:active {
    transform: scale(0.97);
}

/* --- Textilot : Bleu --- */
.btn-textilot {
    background-color: rgba(45, 127, 249, 0.12);
    color: var(--blue);
    border-color: rgba(45, 127, 249, 0.25);
}

.btn-textilot:hover {
    background-color: var(--blue);
    color: #fff;
    box-shadow: 0 0 18px rgba(45, 127, 249, 0.35);
}

/* --- Simracing : Jaune fluo --- */
.btn-simracing {
    background-color: rgba(212, 255, 0, 0.08);
    color: var(--yellow-fluo);
    border-color: rgba(212, 255, 0, 0.2);
}

.btn-simracing:hover {
    background-color: var(--yellow-fluo);
    color: #111;
    box-shadow: 0 0 18px rgba(212, 255, 0, 0.3);
}

/* --- Home : Rose --- */
.btn-home {
    background-color: rgba(255, 77, 166, 0.1);
    color: var(--pink);
    border-color: rgba(255, 77, 166, 0.25);
}

.btn-home:hover {
    background-color: var(--pink);
    color: #fff;
    box-shadow: 0 0 18px rgba(255, 77, 166, 0.35);
}

/* ============================================
   PIED DE PAGE
   ============================================ */
footer {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.7rem;
    }

    .category {
        padding: 1.3rem;
    }

    .buttons-grid {
        grid-template-columns: 1fr;
    }
}
