/* --- Variables et Reset --- */
:root {
    --bg-color: #0d0a15;
    --primary-violet: #8b5cf6;
    --neon-violet: #a78bfa;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- Arrière-plan animé (Orbes) --- */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 10s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.4);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(192, 38, 211, 0.3);
    bottom: 10%;
    right: 5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(167, 139, 250, 0.2);
    top: 40%;
    left: 30%;
    animation-duration: 15s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* --- Classes utilitaires Glassmorphism --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* --- Navigation --- */
header {
    padding: 20px 5%;
    display: flex;
    justify-content: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 15px 30px;
    border-radius: 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, var(--neon-violet));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-violet);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* --- Boutons --- */
.btn-glass {
    text-decoration: none;
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary {
    text-decoration: none;
    color: #fff;
    padding: 12px 25px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-violet), #c026d3);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

/* --- Section Hero (Accueil) --- */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 0 5%;
}

.hero-card {
    max-width: 800px;
    padding: 60px;
    border-radius: 30px;
    text-align: center;
}

.hero-card h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-card h1 span {
    color: var(--neon-violet);
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
}

.hero-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Animations --- */
.fade-in {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Particules Animées --- */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-violet);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-violet);
    opacity: 0;
    animation: rise 15s infinite linear;
}

.particle:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-duration: 18s; animation-delay: 2s; width: 6px; height: 6px; }
.particle:nth-child(3) { left: 50%; animation-duration: 14s; animation-delay: 5s; }
.particle:nth-child(4) { left: 70%; animation-duration: 20s; animation-delay: 1s; width: 3px; height: 3px; }
.particle:nth-child(5) { left: 85%; animation-duration: 16s; animation-delay: 4s; }
.particle:nth-child(6) { left: 20%; animation-duration: 22s; animation-delay: 3s; }

@keyframes rise {
    0% { bottom: -10px; transform: translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    50% { transform: translateX(20px); }
    90% { opacity: 0.8; }
    100% { bottom: 100%; transform: translateX(-20px); opacity: 0; }
}

/* --- Formulaires d'Authentification --- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 0 5%;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.auth-card h2 {
    margin-bottom: 30px;
    color: var(--text-main);
    font-size: 2rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-main);
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus {
    border-color: var(--primary-violet);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
    background: rgba(0, 0, 0, 0.5);
}

.auth-btn {
    width: 100%;
    margin-top: 15px;
    font-size: 1rem;
    cursor: pointer;
}

.auth-switch {
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--neon-violet);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-violet);
}

/* =========================================
   DESTRUCTION DU CYAN (FORCE VIOLET)
   ========================================= */
:root {
    --neon-violet: #a78bfa !important;
    --primary-violet: #8b5cf6 !important;
    --glass-border: rgba(139, 92, 246, 0.3) !important;
}

.logo {
    background: linear-gradient(90deg, #fff, #a78bfa) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #c026d3) !important;
    border: none !important;
    color: #fff !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8b5cf6, #c026d3) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6) !important;
    transform: translateY(-2px) !important;
}

.orb-1 { background: rgba(139, 92, 246, 0.4) !important; }
.orb-2 { background: rgba(192, 38, 211, 0.3) !important; }
.orb-3 { background: rgba(167, 139, 250, 0.2) !important; }

.particle {
    background: #a78bfa !important;
    box-shadow: 0 0 10px #a78bfa !important;
}

.glass-panel {
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.form-group input:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4) !important;
}

/* =========================================
   PAGE PROFIL
   ========================================= */
.profile-layout {
    min-height: 85vh;
    padding: 40px 5%;
    display: flex;
    align-items: flex-start;
}

.profile-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 30px;
}

.avatar-container {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin-bottom: 25px;
    border: 3px solid var(--primary-violet);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
    overflow: hidden;
    cursor: pointer;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 10, 21, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.avatar-container:hover img {
    transform: scale(1.1);
}

.avatar-container:hover .avatar-overlay {
    opacity: 1;
}

.hidden-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.profile-name {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

.profile-role {
    color: var(--neon-violet);
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.stat-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    text-align: left;
}

.stat-box h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.stat-box p {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

.profile-main {
    padding: 40px;
}

.section-title {
    color: var(--neon-violet);
    font-size: 1.2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    margin-bottom: 25px;
    margin-top: 35px;
}

.section-title:first-of-type {
    margin-top: 0;
}

@media (max-width: 768px) {
    .profile-wrapper {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   PAGE ADMINISTRATION
   ========================================= */
.admin-layout {
    padding: 0 5%;
}

.admin-container {
    max-width: 1100px;
    width: 100%;
    margin: 40px auto;
    padding: 40px;
    border-radius: 20px;
}

.admin-title {
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: left;
    color: #fff;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.4);
}

.admin-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.users-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.users-table th {
    background: rgba(139, 92, 246, 0.1);
    color: var(--neon-violet);
    padding: 15px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
}

.users-table td {
    padding: 15px 20px;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
    vertical-align: middle;
}

.users-table tr:last-child td {
    border-bottom: none;
}

.users-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
}

.badge-superadmin {
    background: rgba(192, 38, 211, 0.2);
    color: #f472b6;
    border: 1px solid rgba(192, 38, 211, 0.4);
    box-shadow: 0 0 10px rgba(192, 38, 211, 0.2);
}

.badge-admin {
    background: rgba(139, 92, 246, 0.2);
    color: var(--neon-violet);
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.badge-user {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-banned {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    margin-top: 5px;
}

.btn-action {
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid;
    background: transparent;
}

.btn-ban {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-ban:hover {
    background: rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.btn-unban {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.btn-unban:hover {
    background: rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.action-form {
    margin: 0;
}

/* =========================================
   NOUVELLES CLASSES (Remplacement des styles PHP)
   ========================================= */
.nav-profile-link {
    margin-right: 15px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-admin-link {
    color: var(--neon-violet) !important;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(167, 139, 250, 0.6) !important;
}

.text-success {
    color: #4ade80;
}

.badge-banned-small {
    font-size: 0.7rem;
}

.text-untouchable {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}
/* =========================================
   CORRECTION MENU ET ALIGNEMENT
   ========================================= */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 20px; /* Espace parfait entre le pseudo et le bouton */
}

.nav-profile-link {
    color: var(--neon-violet) !important;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-profile-link:hover, .nav-profile-link.active {
    color: #fff !important;
    text-shadow: 0 0 12px var(--neon-violet);
    transform: scale(1.05);
}
/* =========================================
   PAGE CATALOGUE
   ========================================= */
.catalogue-layout {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

.catalogue-header {
    margin-bottom: 50px;
}

.text-center {
    text-align: center !important;
}

.catalogue-header h1 span {
    color: var(--neon-violet);
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
}

.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.3);
}

.product-badge {
    position: absolute;
    top: 25px;
    right: -35px;
    background: linear-gradient(135deg, var(--primary-violet), #c026d3);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    z-index: 10;
}

.product-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}

.product-title {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.4);
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
    flex-grow: 1; /* Permet au bouton de toujours rester en bas */
}

.product-footer {
    display: flex;
    justify-content: center;
}

/* Faux bouton de prix */
.btn-price {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--glass-border);
    color: var(--text-muted);
    padding: 12px 35px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: not-allowed; /* Change le curseur en icône "interdit" */
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Effet néon au survol de la carte */
.product-card:hover .btn-price {
    border-color: var(--neon-violet);
    color: var(--neon-violet);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.3) inset, 0 0 15px rgba(167, 139, 250, 0.2);
}
/* =========================================
   MISE À JOUR CATALOGUE (CARTES CARRÉES & LOGO)
   ========================================= */
.product-card {
    /* Force la carte à être un carré parfait (largeur = hauteur) */
    aspect-ratio: 1 / 1;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
}

/* Le nouveau style pour ton image logo */
.product-logo {
    width: 80px;
    height: 80px;
    object-fit: contain; /* Garde les proportions de ton image sans l'écraser */
    filter: drop-shadow(0 0 15px rgba(167, 139, 250, 0.6)); /* Effet néon autour de l'image */
    transition: transform 0.3s ease;
}

.product-card:hover .product-logo {
    transform: scale(1.1);
}

/* On adapte la description pour qu'elle rentre bien dans le carré */
.product-desc {
    font-size: 0.85rem;
    overflow-y: auto; /* Ajoute un scroll si le texte déborde */
    max-height: 110px;
    padding: 0 10px;
    margin-bottom: 20px;
}

/* Barre de défilement personnalisée pour la description */
.product-desc::-webkit-scrollbar {
    width: 4px;
}
.product-desc::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.product-desc::-webkit-scrollbar-thumb {
    background: var(--primary-violet);
    border-radius: 10px;
}
/* =========================================
   CORRECTION : PETITS CARRÉS CATALOGUE
   ========================================= */
.catalogue-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 35px !important;
    justify-content: center !important; /* Centre les petits carrés au milieu de la page */
}

.product-card {
    width: 280px !important;  /* Largeur fixe du petit carré */
    height: 280px !important; /* Hauteur fixe du petit carré */
    aspect-ratio: unset !important;
    padding: 25px 15px !important;
}

.product-logo {
    width: 60px !important;  /* On réduit un peu le logo pour qu'il rentre bien */
    height: 60px !important;
    margin-bottom: 10px !important;
}

.product-title {
    font-size: 1.2rem !important; /* Titre légèrement plus petit */
    margin-bottom: 10px !important;
}

.product-desc {
    font-size: 0.75rem !important;
    max-height: 70px !important; /* L'espace alloué au texte est réduit */
    margin-bottom: 15px !important;
}

.product-badge {
    top: 15px !important;
    right: -45px !important;
    font-size: 0.7rem !important;
    padding: 5px 45px !important;
}

.btn-price {
    padding: 8px 25px !important;
    font-size: 1rem !important;
}
/* --- Variables et Reset --- */
:root {
    --bg-color: #0d0a15;
    --primary-violet: #8b5cf6;
    --neon-violet: #a78bfa;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- Arrière-plan animé (Orbes) --- */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 10s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.4);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(192, 38, 211, 0.3);
    bottom: 10%;
    right: 5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(167, 139, 250, 0.2);
    top: 40%;
    left: 30%;
    animation-duration: 15s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* --- Classes utilitaires Glassmorphism --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* --- Navigation --- */
header {
    padding: 20px 5%;
    display: flex;
    justify-content: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 15px 30px;
    border-radius: 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, var(--neon-violet));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-violet);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* --- Boutons --- */
.btn-glass {
    text-decoration: none;
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary {
    text-decoration: none;
    color: #fff;
    padding: 12px 25px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-violet), #c026d3);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

/* --- Section Hero (Accueil) --- */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 0 5%;
}

.hero-card {
    max-width: 800px;
    padding: 60px;
    border-radius: 30px;
    text-align: center;
}

.hero-card h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-card h1 span {
    color: var(--neon-violet);
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
}

.hero-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Animations --- */
.fade-in {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Particules Animées --- */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-violet);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-violet);
    opacity: 0;
    animation: rise 15s infinite linear;
}

.particle:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-duration: 18s; animation-delay: 2s; width: 6px; height: 6px; }
.particle:nth-child(3) { left: 50%; animation-duration: 14s; animation-delay: 5s; }
.particle:nth-child(4) { left: 70%; animation-duration: 20s; animation-delay: 1s; width: 3px; height: 3px; }
.particle:nth-child(5) { left: 85%; animation-duration: 16s; animation-delay: 4s; }
.particle:nth-child(6) { left: 20%; animation-duration: 22s; animation-delay: 3s; }

@keyframes rise {
    0% { bottom: -10px; transform: translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    50% { transform: translateX(20px); }
    90% { opacity: 0.8; }
    100% { bottom: 100%; transform: translateX(-20px); opacity: 0; }
}

/* --- Formulaires d'Authentification --- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 0 5%;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.auth-card h2 {
    margin-bottom: 30px;
    color: var(--text-main);
    font-size: 2rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-main);
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus {
    border-color: var(--primary-violet);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
    background: rgba(0, 0, 0, 0.5);
}

.auth-btn {
    width: 100%;
    margin-top: 15px;
    font-size: 1rem;
    cursor: pointer;
}

.auth-switch {
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--neon-violet);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-violet);
}

/* =========================================
   DESTRUCTION DU CYAN (FORCE VIOLET)
   ========================================= */
:root {
    --neon-violet: #a78bfa !important;
    --primary-violet: #8b5cf6 !important;
    --glass-border: rgba(139, 92, 246, 0.3) !important;
}

.logo {
    background: linear-gradient(90deg, #fff, #a78bfa) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #c026d3) !important;
    border: none !important;
    color: #fff !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8b5cf6, #c026d3) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6) !important;
    transform: translateY(-2px) !important;
}

.orb-1 { background: rgba(139, 92, 246, 0.4) !important; }
.orb-2 { background: rgba(192, 38, 211, 0.3) !important; }
.orb-3 { background: rgba(167, 139, 250, 0.2) !important; }

.particle {
    background: #a78bfa !important;
    box-shadow: 0 0 10px #a78bfa !important;
}

.glass-panel {
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.form-group input:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4) !important;
}

/* =========================================
   PAGE PROFIL
   ========================================= */
.profile-layout {
    min-height: 85vh;
    padding: 40px 5%;
    display: flex;
    align-items: flex-start;
}

.profile-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 30px;
}

.avatar-container {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin-bottom: 25px;
    border: 3px solid var(--primary-violet);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
    overflow: hidden;
    cursor: pointer;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 10, 21, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.avatar-container:hover img {
    transform: scale(1.1);
}

.avatar-container:hover .avatar-overlay {
    opacity: 1;
}

.hidden-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.profile-name {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

.profile-role {
    color: var(--neon-violet);
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.stat-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    text-align: left;
}

.stat-box h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.stat-box p {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

.profile-main {
    padding: 40px;
}

.section-title {
    color: var(--neon-violet);
    font-size: 1.2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    margin-bottom: 25px;
    margin-top: 35px;
}

.section-title:first-of-type {
    margin-top: 0;
}

@media (max-width: 768px) {
    .profile-wrapper {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   PAGE ADMINISTRATION
   ========================================= */
.admin-layout {
    padding: 0 5%;
}

.admin-container {
    max-width: 1100px;
    width: 100%;
    margin: 40px auto;
    padding: 40px;
    border-radius: 20px;
}

.admin-title {
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: left;
    color: #fff;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.4);
}

.admin-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.users-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.users-table th {
    background: rgba(139, 92, 246, 0.1);
    color: var(--neon-violet);
    padding: 15px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
}

.users-table td {
    padding: 15px 20px;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
    vertical-align: middle;
}

.users-table tr:last-child td {
    border-bottom: none;
}

.users-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
}

.badge-superadmin {
    background: rgba(192, 38, 211, 0.2);
    color: #f472b6;
    border: 1px solid rgba(192, 38, 211, 0.4);
    box-shadow: 0 0 10px rgba(192, 38, 211, 0.2);
}

.badge-admin {
    background: rgba(139, 92, 246, 0.2);
    color: var(--neon-violet);
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.badge-user {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-banned {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    margin-top: 5px;
}

.btn-action {
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid;
    background: transparent;
}

.btn-ban {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-ban:hover {
    background: rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.btn-unban {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.btn-unban:hover {
    background: rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.action-form {
    margin: 0;
}

/* =========================================
   NOUVELLES CLASSES (Remplacement des styles PHP)
   ========================================= */
.nav-profile-link {
    margin-right: 15px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-admin-link {
    color: var(--neon-violet) !important;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(167, 139, 250, 0.6) !important;
}

.text-success {
    color: #4ade80;
}

.badge-banned-small {
    font-size: 0.7rem;
}

.text-untouchable {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}
/* =========================================
   CORRECTION MENU ET ALIGNEMENT
   ========================================= */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 20px; /* Espace parfait entre le pseudo et le bouton */
}

.nav-profile-link {
    color: var(--neon-violet) !important;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-profile-link:hover, .nav-profile-link.active {
    color: #fff !important;
    text-shadow: 0 0 12px var(--neon-violet);
    transform: scale(1.05);
}
/* =========================================
   PAGE CATALOGUE
   ========================================= */
.catalogue-layout {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

.catalogue-header {
    margin-bottom: 50px;
}

.text-center {
    text-align: center !important;
}

.catalogue-header h1 span {
    color: var(--neon-violet);
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
}

.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.3);
}

.product-badge {
    position: absolute;
    top: 25px;
    right: -35px;
    background: linear-gradient(135deg, var(--primary-violet), #c026d3);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    z-index: 10;
}

.product-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}

.product-title {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.4);
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
    flex-grow: 1; /* Permet au bouton de toujours rester en bas */
}

.product-footer {
    display: flex;
    justify-content: center;
}

/* Faux bouton de prix */
.btn-price {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid var(--glass-border);
    color: var(--text-muted);
    padding: 12px 35px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: not-allowed; /* Change le curseur en icône "interdit" */
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Effet néon au survol de la carte */
.product-card:hover .btn-price {
    border-color: var(--neon-violet);
    color: var(--neon-violet);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.3) inset, 0 0 15px rgba(167, 139, 250, 0.2);
}
/* =========================================
   MISE À JOUR CATALOGUE (CARTES CARRÉES & LOGO)
   ========================================= */
.product-card {
    /* Force la carte à être un carré parfait (largeur = hauteur) */
    aspect-ratio: 1 / 1;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
}

/* Le nouveau style pour ton image logo */
.product-logo {
    width: 80px;
    height: 80px;
    object-fit: contain; /* Garde les proportions de ton image sans l'écraser */
    filter: drop-shadow(0 0 15px rgba(167, 139, 250, 0.6)); /* Effet néon autour de l'image */
    transition: transform 0.3s ease;
}

.product-card:hover .product-logo {
    transform: scale(1.1);
}

/* On adapte la description pour qu'elle rentre bien dans le carré */
.product-desc {
    font-size: 0.85rem;
    overflow-y: auto; /* Ajoute un scroll si le texte déborde */
    max-height: 110px;
    padding: 0 10px;
    margin-bottom: 20px;
}

/* Barre de défilement personnalisée pour la description */
.product-desc::-webkit-scrollbar {
    width: 4px;
}
.product-desc::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}
.product-desc::-webkit-scrollbar-thumb {
    background: var(--primary-violet);
    border-radius: 10px;
}
/* =========================================
   CORRECTION : PETITS CARRÉS CATALOGUE
   ========================================= */
.catalogue-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 35px !important;
    justify-content: center !important; /* Centre les petits carrés au milieu de la page */
}

.product-card {
    width: 280px !important;  /* Largeur fixe du petit carré */
    height: 280px !important; /* Hauteur fixe du petit carré */
    aspect-ratio: unset !important;
    padding: 25px 15px !important;
}

.product-logo {
    width: 60px !important;  /* On réduit un peu le logo pour qu'il rentre bien */
    height: 60px !important;
    margin-bottom: 10px !important;
}

.product-title {
    font-size: 1.2rem !important; /* Titre légèrement plus petit */
    margin-bottom: 10px !important;
}

.product-desc {
    font-size: 0.75rem !important;
    max-height: 70px !important; /* L'espace alloué au texte est réduit */
    margin-bottom: 15px !important;
}

.product-badge {
    top: 15px !important;
    right: -45px !important;
    font-size: 0.7rem !important;
    padding: 5px 45px !important;
}

.btn-price {
    padding: 8px 25px !important;
    font-size: 1rem !important;
}