@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700;900&family=Poppins:wght@300;400;500;600&display=swap');

body {
    background-image: linear-gradient(to bottom, rgba(15, 15, 15, 0.7), rgba(15, 15, 15, 0.95)), url('/fond.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #f1f1f1;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

/* --- ÉCRAN DE VERROUILLAGE --- */
.landing-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

.landing-screen h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.login-box {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 40px;
    border-radius: 15px;
    margin-top: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    max-width: 400px;
}

.btn-discord-large {
    display: inline-block;
    background-color: #5865F2;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.btn-discord-large:hover { background-color: #4752c4; transform: translateY(-2px); }

/* --- HEADER ET PROFIL --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.logo-container h1 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #d4af37;
    text-transform: uppercase;
}

.auth-section { display: flex; align-items: center; }

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 15px 6px 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar { width: 36px; height: 36px; border-radius: 50%; }
.user-profile span { font-size: 0.9rem; color: #e0e0e0; }

.btn-logout {
    color: #c41e2b;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 10px;
    transition: 0.2s;
}

/* --- HÉROS BANNIÈRE --- */
.hero-section {
    background: linear-gradient(to right, rgba(196, 30, 43, 0.9), rgba(20, 20, 20, 0.8)), url('/fond.png');
    background-size: cover;
    background-position: center;
    padding: 60px 50px;
    margin: 30px auto;
    max-width: 1100px;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero-badge { background: #d4af37; color: #1a1a1a; padding: 5px 12px; border-radius: 20px; font-weight: bold; font-size: 0.8rem; text-transform: uppercase; }
.hero-content h2 { font-family: 'Montserrat', sans-serif; font-size: 2.5rem; margin: 15px 0; color: #fff; }
.btn-hero { background: #fff; color: #c41e2b; border: none; padding: 12px 25px; font-weight: bold; border-radius: 6px; cursor: pointer; }

/* --- CATÉGORIES --- */
.categories-menu { display: flex; justify-content: center; gap: 15px; padding: 30px 0 10px 0; }
.cat-btn {
    background: rgba(40, 40, 40, 0.6);
    color: #bbb;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}
.cat-btn.active { background: #c41e2b; color: #fff; border-color: #c41e2b; }

/* --- CARTES MODS --- */
.catalogue { display: flex; justify-content: center; gap: 30px; padding: 40px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }

.mod-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 35px 30px 30px 30px;
    width: 280px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: visible; 
}

.mod-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.badge {
    position: absolute; top: -12px; left: 20px;
    padding: 4px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 2;
}
.badge-fs22 { background: #3b82f6; color: white; }
.badge-fs25 { background: #10b981; color: white; }
.badge-3d   { background: #8b5cf6; color: white; }

.price { font-size: 1.5rem; font-weight: 700; color: #d4af37; margin: 20px 0; }
.btn-achat {
    background-color: #c41e2b;
    color: white; border: none; padding: 12px;
    border-radius: 6px; cursor: pointer; font-weight: 600;
}

/* --- FOOTER ET MODALE --- */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); align-items: center; justify-content: center; }
.modal-content { background: #1e1e1e; border: 1px solid #d4af37; border-radius: 12px; width: 800px; display: flex; padding: 30px; position: relative; }
.close-btn { position: absolute; top: 15px; right: 20px; color: #aaa; cursor: pointer; font-size: 28px; }
footer { background: #0f0f0f; border-top: 2px solid rgba(196, 30, 43, 0.5); padding: 40px 50px; margin-top: 60px; }

/* Cache la description sur la carte d'accueil */
.mod-card p {
    display: none;
}

/* S'assure que la description reste bien visible dans la modale */
#modal-desc {
    display: block;
    margin-bottom: 15px;
}

/* Limite la hauteur de la description et ajoute un scroll */
#modal-desc {
    max-height: 250px; /* Tu peux ajuster cette taille */
    overflow-y: auto;  /* Active la barre de défilement verticale */
    padding-right: 10px; /* Évite que le texte ne colle à la barre de scroll */
    text-align: left;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

/* Personnalisation de la barre de scroll pour un look pro */
#modal-desc::-webkit-scrollbar {
    width: 6px;
}
#modal-desc::-webkit-scrollbar-track {
    background: #2a2a2a; 
    border-radius: 10px;
}
#modal-desc::-webkit-scrollbar-thumb {
    background: #ff4444; 
    border-radius: 10px;
}