/* =========================================
   1. VARIABLES & BASE
   ========================================= */
:root {
    --bs-font-sans-serif: 'Rubik', sans-serif;
}

[data-bs-theme=dark] {
    --bs-body-bg: #191e24;
    --bs-body-bg-rgb: 46, 44, 71;
    --bs-primary-color-contrast: #2e2c47 !important;
}

body {
    background: #11161b;
}

h1 {
    color: #cecdd8;
    text-align: center;
    padding: 1rem 0;
    font-weight: 700;
    margin-bottom: 2rem;
}

a {
    text-decoration: none;
}

.btn {
    font-weight: bold;
}

.content {
    margin-top: 5rem;
    margin-bottom: 4rem;
}

/* =========================================
   2. LAYOUT (HEADER, HOME, FOOTER)
   ========================================= */
.home {
    min-height: 100vh;
    padding-bottom: 2rem; /* Beaucoup plus propre */
    position: relative;
}

.home .navbar {
    margin-bottom: 5rem;
}

.home::after {
    position: absolute;
    z-index: 0;
    bottom: -1px;
    height: 240px;
    left: 0;
    right: 0;
    content: "";
    background: url(../svg/header_shape.svg) center / cover no-repeat;
}

.top-header {
    position: relative;
}

.top-header .logo {
    max-height: 100px;
}

.home .logo {
    max-height: 175px;
}

.home::before,
.top-header::after {
    position: absolute;
    background-color: rgba(46, 44, 71, 0.7);
    content: "";
    z-index: 0;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

/* --- FOOTER UNIVERSEL (CLEAN SUR TOUTES LES PAGES) --- */

.footer {
    position: relative;
    margin-top: 3rem !important; /* Espace au-dessus */
    background-color: #0f1219 !important; /* Fond noir */
    padding: 0 !important; /* Zéro padding pour coller le copyright */
    border: none !important;
}

/* 1. SUPPRIMER LA VAGUE (SVG) */
.footer::before {
    display: none !important; 
}

/* 2. LA SOLUTION : On cache tout le conteneur principal du haut */
/* Cela supprime "Hytale SMP", la description et les liens sur TOUTES les pages */
.footer > .container {
    display: none !important;
}

/* 3. On garde et stylise uniquement la barre de Copyright */
.footer .text-bg-primary {
    display: block !important; /* Force l'affichage */
    background-color: #0b0d12 !important; /* Fond très sombre */
    border-top: 1px solid rgba(61, 177, 255, 0.1); /* Ligne bleue fine */
    padding: 1.5rem 0;
    margin-top: 0 !important;
}

/* Couleur du lien "Propulsé par Azuriom" */
.footer .text-bg-primary a {
    color: #a0aec0 !important;
    font-weight: 600;
}

/* =========================================
   3. NAVIGATION & MENU (STYLE MINEXIS)
   ========================================= */

/* Barre de navigation noire en haut */
.bg-dark-custom {
    background-color: #0f1219 !important; /* Noir profond */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
}

/* Force l'alignement horizontal des liens */
.navbar-nav {
    flex-direction: row !important;
    align-items: center;
}

.navbar .nav-item {
    margin-right: 0.25rem;
    margin-left: 0.25rem;
}

/* Style des liens (Texte) */
.navbar-nav .nav-link {
    color: #a0aec0 !important; /* Gris clair */
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 5px;
    padding: 8px 15px !important;
    border-radius: 8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* Effet au survol et lien actif */
.navbar-nav .nav-link:hover,
.navbar-nav .active .nav-link,
.navbar .dropdown-toggle::after {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.navbar-nav .active .nav-link {
    background-color: #1a273a !important;
    border: 1px solid #2d4f7c;
    box-shadow: 0 0 10px rgba(45, 79, 124, 0.3);
}

/* Bouton Login (Cadre bleu à droite) */
.btn-outline-minexis {
    color: #3db1ff !important;
    border: 1px solid #3db1ff !important;
    background: transparent;
    padding: 5px 20px;
    border-radius: 5px;
    margin-left: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-minexis:hover {
    background-color: #3db1ff !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(61, 177, 255, 0.4);
}

/* Correction taille logo navbar */
.navbar-brand img {
    height: 40px !important;
    width: auto;
}

/* =========================================
   4. MENU PROFIL & DROPDOWN (ANIMÉ & CORRIGÉ)
   ========================================= */

/* Le bouton Profil (Avatar + Nom en mode pilule) */
.user-link {
    display: flex !important;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px 5px 5px !important;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    color: white !important;
    cursor: pointer;
    transition: all 0.3s;
    height: auto !important;
    margin-left: 10px;
}

.user-link:hover {
    background: rgba(61, 177, 255, 0.15) !important;
    border-color: #3db1ff;
}

.user-link img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    margin-right: 10px !important;
    border: 2px solid #3db1ff;
}

.user-link span {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- LOGIQUE D'OUVERTURE AU SURVOL --- */
.nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* La Boite du Menu Déroulant */
.custom-dropdown {
    background-color: #1a1c24 !important;
    border: 1px solid #3db1ff !important;
    border-radius: 8px;
    
    /* ICI : Marge augmentée pour le style */
    margin-top: 15px !important; 
    
    padding: 5px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-width: 200px;
    position: absolute;
    z-index: 9999 !important;
}

/* --- LE PONT INVISIBLE (FIX POUR QUE LE MENU RESTE OUVERT) --- */
.custom-dropdown::before {
    content: "";
    display: block;
    position: absolute;
    top: -20px; /* Remonte jusqu'au bouton */
    left: 0;
    width: 100%;
    height: 20px; /* Couvre l'espace vide */
    background: transparent;
}

/* Liens dans le menu déroulant */
.custom-dropdown .dropdown-item {
    color: #cccccc !important;
    padding: 10px 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.custom-dropdown .dropdown-item:hover {
    background-color: rgba(61, 177, 255, 0.1) !important;
    color: white !important;
    padding-left: 25px;
}

.custom-dropdown .dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    color: #3db1ff;
}

.dropdown-divider {
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================================
   5. WIDGETS PERSONNALISÉS
   ========================================= */

/* Effet Néon générique pour les cartes */
.card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.card:hover {
    border-color: #00d4ff !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4) !important;
    transform: translateY(-5px);
    background-color: rgba(25, 30, 36) !important;
}

/* --- Widget Donation Goal --- */
.donation-card {
    background-color: rgba(20, 25, 35, 0.9) !important;
    border: 1px solid rgba(61, 177, 255, 0.2);
}
.donation-title {
    color: #3db1ff;
    font-weight: 700;
    text-transform: capitalize;
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.custom-progress {
    background-color: #151521;
    height: 12px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}
.custom-bar {
    background: linear-gradient(90deg, #0055ff, #00d4ff);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}
.amount {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
}
.percentage {
    color: #3db1ff;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Widget Sponsor of the Month --- */
.sponsor-card {
    background-color: rgba(20, 25, 35, 0.9) !important;
    border: 1px solid rgba(61, 177, 255, 0.1);
}
.sponsor-badge {
    background-color: #ffc107 !important;
    color: #212529 !important;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
    text-transform: none;
}
.sponsor-name {
    color: white;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
}
.sponsor-desc {
    color: #8898aa;
    font-size: 0.85rem;
    font-weight: 500;
}
.sponsor-skin {
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}
.sponsor-skin:hover {
    transform: scale(1.05) rotate(-2deg);
}
.sponsor-stats-box {
    border: 1px solid #2d3e50;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.2);
}
.sponsor-amount {
    color: #3db1ff;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
}
.sponsor-currency {
    color: #8898aa;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 5px;
}

/* --- Widget Latest Sponsors --- */
.latest-sponsors-card {
    background-color: rgba(20, 25, 35, 0.9) !important;
    border: 1px solid rgba(61, 177, 255, 0.1);
    border-radius: 15px;
}
.sponsor-item {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid #2d3e50;
    border-radius: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.sponsor-item:hover {
    transform: translateX(5px);
    border-color: #3db1ff;
}
.sponsor-avatar {
    border-radius: 10px;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(61, 177, 255, 0.1);
    margin-right: 15px !important;
}
.sponsor-pseudo {
    color: white;
    font-weight: 800;
    font-size: 1rem;
}
.sponsor-amount-text {
    color: #8898aa;
    font-weight: 600;
    display: flex;
    align-items: center;
}
.sponsor-amount-value {
    color: #3db1ff;
    font-weight: 800;
    font-size: 1.1rem;
}

/* --- CACHER LES TITRES AUTOMATIQUES (Boutique, etc.) --- */
.content > h1, 
.content > .text-center > h1 {
    display: none !important;
}

/* Taille du logo dans la barre de menu */
.navbar-brand img {
    height: 40px !important; /* Ajuste la hauteur ici si besoin (ex: 50px) */
    width: auto;
    margin-right: 10px; /* Espace entre le logo et le texte */
}

/* --- STYLE NOM DU SITE (Bleu élécrtiqe) --- */
.navbar-brand span {
    color: #3db1ff !important; /* Le bleu ciel du Donation Goal */
    font-weight: 800 !important; /* Très gras */
    font-size: 1.4rem !important; /* Taille ajustée */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(61, 177, 255, 0.4); /* Effet de lueur néon */
    margin-left: 10px;
}

/* Cache le widget "Objectif" uniquement sur la page boutique */
.shop-home .col-lg-3 .card .progress, 
.shop-home .col-lg-3 .card:has(.progress) {
    display: none !important;
}