

/* ==========================================================================
   2. RESET & BASE GLOBAL
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  vertical-align: baseline;
  color: inherit;
  background: transparent;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}


/* ==========================================================================
   3. LAYOUT PRINCIPAL (OKOK STYLE)
   ========================================================================== */
.custom-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.main-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* SIDEBAR GAUCHE */
.custom-sidebar-left {
  width: var(--sidebar-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.custom-sidebar-left .widget {
  width: 100%;
  margin: 0 !important;
  background: var(--color-brighter-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  border: 1px solid rgba(248, 249, 250, 0.05);
}

.custom-sidebar-left .widget-title {
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* CONTENU PRINCIPAL DROITE */
.custom-main-content {
  flex-grow: 1;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
}

/* RESPONSIVE MOBILE DU LAYOUT */
@media (max-width: 960px) {
  .main-container { flex-direction: column; }
  .custom-sidebar-left { width: 100%; order: 2; }
  .custom-main-content { order: 1; }
  .header-main-area { flex-direction: column; gap: 20px; }
  .top-nav-links { flex-wrap: wrap; justify-content: center; }
}

/* ==========================================================================
   4. NAVIGATION HAUTE ET HEADER
   ========================================================================== */
.top-nav-bar {
  background: var(--color-brighter-bg);
  border-radius: var(--border-radius);
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  border: 1px solid rgba(248, 249, 250, 0.05);
}

.top-nav-links {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.top-nav-links a:hover, .top-nav-links li.active a {
  background: var(--color-primary);
  color: #fff;
}

.header-main-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.header-spacer { flex: 1; }
.header-logo { flex: 1; display: flex; justify-content: center; }
.header-logo img { max-height: 80px; object-fit: contain; }

.header-actions {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  align-items: center;
}

/* ==========================================================================
   5. BOUTONS (ROYAL GOLD EDITION)
   ========================================================================== */

/* Style de base pour TOUS les boutons du site */
.btn-primary, .btn-secondary, .btn-tertiary, .btn-discord, .btn-royal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px; /* Taille standard élégante */
    padding: 0 25px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* --- BOUTON PRIMAIRE (LINGOT D'OR) --- */
/* Utilisé pour "Buy Now", "Checkout", etc. */
.btn-primary {
    background: var(--gold-gradient) !important;
    color: #000 !important; /* Texte noir pour le luxe */
    border: 1px solid #fff !important;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
    filter: brightness(1.1);
}

/* --- BOUTON SECONDAIRE (EFFET VERRE) --- */
/* Utilisé pour "Add to Basket", "Secondary actions" */
.btn-secondary, .btn-tertiary {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
    transform: translateY(-2px);
}

/* --- BOUTONS SPÉCIFIQUES HERO (DISCORD & FIVEM) --- */

/* Discord (Sobre & Glow Bleu au survol) */
.btn-discord-hero {
    background: rgba(88, 101, 242, 0.1) !important;
    border: 1px solid rgba(88, 101, 242, 0.4) !important;
    color: #fff !important;
}
.btn-discord-hero:hover {
    background: rgba(88, 101, 242, 0.2) !important;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

/* FiveM (Or & Glow Blanc au survol) */
.btn-server-hero {
    background: rgba(212, 175, 55, 0.05) !important;
    border: 1px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
}

.btn-server-hero:hover {
    background: var(--color-primary) !important;
    color: #fff !important; /* Le texte devient blanc */
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

/* --- FIX ICONE FIVEM (BLANC AU SURVOL) --- */
.fivem-gold-filter {
    width: 22px;
    height: 22px;
    filter: sepia(100%) saturate(500%) hue-rotate(0deg); /* Or par défaut */
    transition: all 0.3s ease;
}

.btn-server-hero:hover .fivem-gold-filter {
    filter: brightness(0) invert(1) !important; /* DEVIENT PUREMENT BLANC */
    transform: rotate(360deg);
}

/* --- EFFET DE BRILLANCE (SHINE ANIMATION) --- */
/* Ajoute cette classe à n'importe quel bouton pour l'effet de reflet */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.6s;
}
.btn-primary:hover::after {
    left: 100%;
}

/*/* ==========================================================================
   3. LAYOUT PRINCIPAL (OKOK STYLE)
   ========================================================================== */
.custom-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-height: calc(100vh - 40px); /* NOUVEAU : Force la hauteur de l'écran */
}

.main-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-grow: 1; /* NOUVEAU : Étend cette zone pour pousser le footer vers le bas */
  width: 100%;
}
.store-product {
  background: var(--color-brighter-bg) !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius) !important;
  padding: 20px !important;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.store-product:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(243, 102, 34, 0.1); /* Ombre orange */
}

.store-product .image-link {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
}

.store-product .image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.store-product:hover .image { transform: scale(1.05); }

.store-product .product-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.store-product .product-title a { color: var(--color-text); transition: color 0.2s; }
.store-product .product-title a:hover { color: var(--color-primary); }

.store-product .price {
  text-align: center;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--color-primary);
  margin-bottom: 15px !important;
}

.store-product .actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.store-product .btn-primary {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   7. AUTRES ELEMENTS TEBEX (Forms, Basket, Widgets internes)
   ========================================================================== */
.store-form input[type=text], .store-form input[type=password],
.store-form input[type=email], .store-form input[type=number],
.store-form select, .store-form textarea {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--color-text);
  border-radius: 6px;
  margin-bottom: 12px;
}

.widget-recent .purchase {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
}
.widget-recent .avatar { width: 36px; height: 36px; border-radius: 4px; }
.widget-recent .username { font-weight: bold; font-size: 14px; }
.widget-recent time { font-size: 12px; color: var(--color-text-secondary); }

.widget-gift-card .gift-card-input {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--color-text);
  border-radius: 6px;
  margin-bottom: 10px;
}
.widget-gift-card .check { width: 100%; text-align: center; justify-content: center; }

/* PANIER (BASKET POPUP) */
.basket-popup-content {
  background: var(--color-bg);
  border-left: 1px solid rgba(255,255,255,0.05);
}
.basket .basket-header {
  background: var(--color-brighter-bg);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.basket .basket-item {
  background: var(--color-brighter-bg);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255,255,255,0.05);
}
.basket .basket-checkout .total strong { color: var(--color-primary); }

/* QUANTITY FIELD */
.quantity-field {
  display: flex;
  align-items: stretch;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
}
.quantity-field input[type=number] {
  background: transparent; border: none; color: #fff; text-align: center; width: 40px;
}
.quantity-field .adjust {
  background: transparent; color: var(--color-text-secondary); padding: 0 10px; cursor: pointer;
}
.quantity-field .adjust:hover { color: var(--color-primary); }

/* TEXT CONTENT */
.text-content { line-height: 1.6; color: var(--color-text-secondary); }
.text-content h1, .text-content h2, .text-content h3 { color: var(--color-text); margin-bottom: 15px; }

/* ==========================================================================
   CUSTOM FOOTER (RÉPARTITION EXACTE IMAGE)
   ========================================================================== */
.custom-footer {
    padding: 30px 40px !important;
    margin-top: auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Écraser les marges Bootstrap/Tebex */
.custom-footer p, .custom-footer h5 { margin: 0 !important; padding: 0 !important; }

/* --- 1. TITRE SÉCURITÉ --- */
.security-title {
    color: var(--color-text);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}
.security-title i { color: var(--color-primary); font-size: 18px; }

/* --- 2. LIGNES DE SÉPARATION --- */
.footer-divider-full {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 20px 0;
}
.footer-divider-gradient {
    width: 100%;
    max-width: 500px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(212 175 55), transparent);
    margin: 25px 0 20px 0;
}

/* --- 3. GRILLE DE PAIEMENT ÉCARTÉE --- */
.payment-grid-spread {
    display: flex;
    justify-content: space-between; /* Écarte les colonnes gauche/centre/droite */
    width: 100%;
    max-width: 800px; /* Limite l'écartement pour que ça ne soit pas trop collé aux bords */
    margin-bottom: 25px;
}
.payment-col {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espace vertical entre Visa et Google Pay par ex */
    align-items: center;
    font-size: 30px;
    color: rgba(255, 255, 255, 0.3);
}
.payment-col i { transition: 0.3s; cursor: default; }
.payment-col i:hover { color: var(--color-text); transform: scale(1.1); }

/* --- 4. BADGE TEBEX --- */
.tebex-official-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.tebex-secure-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.security-text {
    font-size: 10px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 5. CRÉDITS & SIGNATURE --- */
.credits-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.copy-text {
    font-size: 12px;
    color: var(--color-text-secondary);
    letter-spacing: 1px;
}
.design-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.designed-by-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--color-text-secondary);
    letter-spacing: 1.5px;
}

/* Animation du coeur */
.pulse-heart { color: #ff3333; animation: pulse 1.5s infinite; }
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Bouton Santa Neon */
.santa-neon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.santa-neon-badge:hover {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(243, 102, 34, 0.4);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Liens Légaux */
.footer-legal-links { font-size: 11px; margin-top: 5px; }
.footer-legal-links a { color: var(--color-text-secondary); text-decoration: none; transition: 0.2s; }
.footer-legal-links a:hover { color: var(--color-primary); }

/* --- ADAPTATION MOBILE --- */
@media (max-width: 600px) {
    .payment-grid-spread {
        flex-direction: row; /* Garde la ligne sur mobile */
        gap: 10px;
    }
    .payment-col { font-size: 24px; }
}
/* ==========================================================================
   STYLE DES CATÉGORIES AVEC IMAGES (GRID)
   ========================================================================== */

.categories-grid {
    display: grid;
    /* Crée automatiquement des colonnes selon la place dispo (min 250px) */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.category-card-img {
    display: block;
    background: rgba(15, 15, 15, 0.6); /* Fond sombre vitré */
    border: 1px solid rgba(212, 175, 55, 0.2); /* Bordure dorée subtile */
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Effet au survol de la carte */
.category-card-img:hover {
    border-color: var(--color-primary); /* Devient Or brillant */
    transform: translateY(-5px); /* Monte légèrement */
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15); /* Halo doré */
}

/* Conteneur de l'image (pour gérer la taille) */
.cat-img-wrapper {
    width: 100%;
    height: 160px; /* Hauteur fixe pour que tout soit aligné */
    overflow: hidden;
    background: #0a0a0a;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* L'image elle-même */
.real-cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit tout le cadre sans déformer */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card-img:hover .real-cat-img {
    transform: scale(1.1); /* Zoom sur l'image au survol */
}

/* Le titre en bas */
.cat-info {
    padding: 15px;
    text-align: center;
    background: linear-gradient(to top, rgba(10,10,10,0.9), rgba(20,20,20,0.8));
}

.cat-title {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.category-card-img:hover .cat-title {
    color: var(--color-primary); /* Le texte devient Or */
}

/* Si pas d'image, on affiche une icône par défaut */
.no-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, rgba(0,0,0,1) 100%);
}
.no-img-placeholder i {
    font-size: 40px;
    color: rgba(212, 175, 55, 0.5);
}

.loginpage {
    background: rgba(15, 15, 15, 0.7) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    border-radius: 8px !important;
    padding: 25px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
    color: #ffffff !important;
}

.variables p {
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.continue {
    margin-top: 2em;
}