@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&family=Poppins:wght@300;400;600;800&display=swap');

/* --- VARIABLES --- */
:root {
    /* Palette Premium "Neon deeply" */
    --bg-color: #050508;
    --bg-gradient: radial-gradient(circle at center, #1a1a2e 0%, #050508 100%);

    --primary-color: #7B2CBF;
    /* Violet Profond */
    --secondary-color: #4361EE;
    /* Bleu Royal */
    --accent-color: #F72585;
    /* Rose Néon */
    --success-color: #4CC9F0;
    /* Cyan */
    --warning-color: #F8961E;
    /* Orange */

    --text-primary: #FFFFFF;
    --text-secondary: #B8B8D0;
    --text-tertiary: #6c757d;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --glass-blur: blur(20px);

    --card-radius: 24px;
    --btn-radius: 50px;

    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* cursor: none !important; Removed for usability */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', 'Poppins', sans-serif;
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    background: linear-gradient(135deg, #FFF 0%, #B8B8D0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* --- CUSTOM CURSOR --- */
.cursor-light {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    box-shadow: 0 0 20px var(--accent-color);
}

.cursor-light {
    display: none;
    /* Disabled */
    position: fixed;
    /* ... */
}

.cursor-follower {
    display: none;
    /* Disabled */
    position: fixed;
    /* ... */
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s, height 0.3s;
}

body:hover .cursor-light {
    opacity: 1;
}

/* Cursor Hover States handled by JS adding classes */
.cursor-hover .cursor-light {
    width: 80px;
    height: 80px;
    background: white;
    opacity: 0.1;
}

/* --- BACKGROUND ANIMATION --- */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    animation-duration: 25s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--secondary-color);
    animation-duration: 30s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    animation-duration: 20s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 50px) rotate(20deg);
    }
}

/* --- GLASSMORPHISM COMPONENTS --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    /* Safari */
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--btn-radius);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    outline: none;
    color: white;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 10px 20px rgba(123, 44, 191, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(123, 44, 191, 0.5);
}

.btn-accent {
    background: linear-gradient(90deg, var(--accent-color), #ff4081);
    box-shadow: 0 10px 20px rgba(247, 37, 133, 0.3);
}

.btn-accent:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(247, 37, 133, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.3s;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
}

.nav-icon {
    font-size: 1.2rem;
    color: white;
    transition: var(--transition-fast);
}

.nav-icon:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    padding-top: 80px;
    /* Header clearance */
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* --- CREATOR CARDS (Index) --- */
.creator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.creator-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--glass-bg);
}

.creator-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition-bounce);
}

.creator-card:hover .creator-img {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent-color);
    box-shadow: 0 0 30px var(--accent-color);
}

.creator-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-online {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: #004d40;
}

.status-soon {
    background: linear-gradient(135deg, #ffc371, #ff5f6d);
    color: #5d0000;
}

.creator-featured {
    grid-column: 1 / -1;
    /* Spans all columns in grid */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    background: linear-gradient(145deg, rgba(123, 44, 191, 0.15), rgba(67, 97, 238, 0.05));
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 50px rgba(123, 44, 191, 0.3);
    padding: 4rem;
    gap: 3rem;
    transform: scale(1.02);
}

.creator-featured h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.creator-featured p {
    font-size: 1.4rem;
    max-width: 600px;
}

.creator-featured .creator-img {
    width: 220px;
    height: 220px;
    border-width: 6px;
    margin-bottom: 0;
    box-shadow: 0 0 40px var(--primary-color);
}

.creator-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 900px) {
    .creator-featured {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .creator-featured .creator-img {
        margin-bottom: 2rem;
        margin-right: 0;
    }

    .creator-featured h2 {
        font-size: 2.5rem;
    }
}

/* --- PROFILE & GALLERY (Roman) --- */
.profile-header {
    text-align: center;
    margin-bottom: 4rem;
}

.profile-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 50px rgba(123, 44, 191, 0.4);
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    height: 300px;
    border-radius: var(--card-radius);
    overflow: hidden;
    position: relative;
    cursor: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    padding: 4rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* --- FORMS (From original) --- */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

/* --- CART & BADGES (Preserving logic) --- */
.promo-badge {
    background: linear-gradient(45deg, #ff0055, #ff00cc);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.panier-table {
    width: 100%;
    border-collapse: collapse;
}

.panier-table td,
.panier-table th {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

/* --- UTILITIES --- */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.w-100 {
    width: 100%;
}

.d-none {
    display: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        font-size: 0.9rem;
    }
}