/* --- VARIABLES ET BASES --- */
:root {
    --gold: #D1AF21;
    --red: #ff3e3e;
    --yellow: #ffcc00;
    --blue: #00ccff;
    --purple: #cc00ff;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --bg-dark: #050505;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg-dark) url('background.png') no-repeat center center fixed;
    background-size: cover;
    color: white;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
.navbar {
    background: rgba(0,0,0,0.95);
    padding: 15px 0;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}
.logo { font-size: 1.5rem; font-weight: 900; letter-spacing: 2px; }
.logo span { color: var(--gold); }

.nav-links { display: flex; gap: 15px; }
.nav-wrapper {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 2px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    transition: 0.3s;
}
.nav-wrapper:hover { border-color: var(--gold); background: #222; }
.nav-item {
    background: none;
    border: none;
    color: white;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    padding: 8px 15px;
    font-size: 0.85rem;
    text-decoration: none;
}
.nav-item.active { color: var(--gold); font-weight: 900; }

/* --- BOUTON LAUNCHER ANIME --- */
.btn-launcher-nav {
    position: relative;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    border: 1px solid var(--gold);
    overflow: hidden;
    background: rgba(209, 175, 33, 0.1);
    transition: 0.3s;
}
.btn-launcher-nav span { position: absolute; background: var(--gold); display: block; }
.btn-launcher-nav span:nth-child(1) { top: 0; left: -100%; width: 100%; height: 2px; animation: anim1 2s linear infinite; }
.btn-launcher-nav span:nth-child(2) { top: -100%; right: 0; width: 2px; height: 100%; animation: anim2 2s linear infinite; animation-delay: 0.5s; }
.btn-launcher-nav span:nth-child(3) { bottom: 0; right: -100%; width: 100%; height: 2px; animation: anim3 2s linear infinite; animation-delay: 1s; }
.btn-launcher-nav span:nth-child(4) { bottom: -100%; left: 0; width: 2px; height: 100%; animation: anim4 2s linear infinite; animation-delay: 1.5s; }

@keyframes anim1 { 0% { left: -100%; } 50%, 100% { left: 100%; } }
@keyframes anim2 { 0% { top: -100%; } 50%, 100% { top: 100%; } }
@keyframes anim3 { 0% { right: -100%; } 50%, 100% { right: 100%; } }
@keyframes anim4 { 0% { bottom: -100%; } 50%, 100% { bottom: 100%; } }

/* --- GRILLE BOUTIQUE --- */
.grid-shop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 20px auto 100px auto;
    padding: 0 30px;
}

.glass-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    text-align: center;
    transition: 0.4s;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; 
}

/* --- CORRECTION CRITIQUE DES IMAGES --- */
.card-icon {
    height: 140px;          /* Hauteur fixe : empêche l'image de devenir géante */
    width: auto;            /* Largeur auto : garde les proportions */
    max-width: 100%;        /* Sécurité : ne dépasse jamais la largeur de la carte */
    object-fit: contain;    /* CRUCIAL : affiche TOUTE l'image sans rogner */
    margin: 0 auto 20px auto; /* Centre l'image parfaitement */
    display: block;
    filter: drop-shadow(0 0 10px rgba(209, 175, 33, 0.2));
    transition: 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
}

.glass-card:hover .card-icon {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px var(--gold));
}

.price { font-size: 2rem; font-weight: 900; color: var(--gold); margin: 15px 0; }

.btn-action {
    background: none;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    width: 100%;
}
.btn-action:hover { background: var(--gold); color: black; box-shadow: 0 0 20px var(--gold); }

/* --- POPUPS --- */
.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); z-index: 9999; justify-content: center; align-items: center; }
.popup-content { background: #111; width: 450px; padding: 30px; border: 2px solid var(--gold); border-radius: 10px; text-align: center; }

/* --- DASHBOARD TABLES --- */
.leaderboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.leaderboard-box { background: rgba(255,255,255,0.05); padding: 25px; border-radius: 15px; border: 1px solid #333; }
.top-list { list-style: none; padding: 0; }
.top-list li { padding: 12px; border-bottom: 1px solid #222; display: flex; justify-content: space-between; font-weight: 700; }

/* --- SÉLECTEUR VIP --- */
.selector-wrapper { display: flex; background: rgba(0, 0, 0, 0.4); border-radius: 50px; padding: 4px; margin: 10px auto; border: 1px solid rgba(255, 255, 255, 0.05); width: fit-content; }
.sel-btn { background: transparent; border: none; color: #888; padding: 6px 14px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease; border-radius: 50px; }
.sel-btn:hover { color: #fff; }
.sel-btn.active { color: #fff; font-weight: 900; background: rgba(255,255,255,0.1); }
.neon-blue .sel-btn.active { background: var(--blue); }
.neon-purple .sel-btn.active { background: var(--purple); }

/* --- TICKET & INPUTS --- */
.input-field { width: 100%; background: #1a1a1a; border: 1px solid #333; padding: 15px; color: white; border-radius: 5px; margin-bottom: 10px; }
.editor-toolbar { display: flex; gap: 8px; padding: 10px; background: #1a1a1a; border: 1px solid #333; border-bottom: none; border-radius: 5px 5px 0 0; }
.rich-editor { min-height: 200px; background: #0a0a0a; border: 1px solid #333; padding: 15px; color: white; outline: none; border-radius: 0 0 5px 5px; text-align: left; }
.tab-content { display: none; padding: 40px 0; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Utilitaires Néon */
.neon-gold { border-color: var(--gold); box-shadow: 0 0 15px rgba(209, 175, 33, 0.2); }
.neon-blue { border-color: var(--blue); box-shadow: 0 0 15px rgba(0, 204, 255, 0.2); }
.neon-purple { border-color: var(--purple); box-shadow: 0 0 15px rgba(204, 0, 255, 0.2); }
.neon-red { border-color: var(--red); box-shadow: 0 0 15px rgba(255, 62, 62, 0.2); }