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

@font-face {
    font-family: 'LilitaOne';
    src: url('font/LilitaOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PlayfairDisplay';
    src: url('font/PlayfairDisplay.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PlayfairDisplay';
    src: url('font/PlayfairDisplay-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'UrbanJungle';
    src: url('font/urbanjungledemo.otf') format('opentype');
    font-weight: normal;
    font-display: swap;
}

/* =========================================
   2. STYLES DE BASE & CANVAS (FIX)
   ========================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #000;
    color: #f3f4f6;
    overflow-x: hidden;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- C'EST ICI QUE LA MAGIE OPÈRE --- */
/* Force le canvas à rester en fond d'écran fixe */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Le met derrière tout le reste */
    pointer-events: none; /* Permet de cliquer à travers */
}

/* Ajustement pour le scroll avec la navbar fixe */
section {
    scroll-margin-top: 80px;
}

main {
    flex-grow: 1;
}

/* =========================================
   3. SCROLLBAR PERSONNALISÉE
   ========================================= */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #000; 
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff0055, #ffcc00);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff0055; 
}

/* =========================================
   4. TYPOGRAPHIE & UTILITAIRES
   ========================================= */

.LilitaOne { font-family: 'LilitaOne', cursive; }
.font-urban { font-family: 'UrbanJungle', display; }
.playfair-display { font-family: 'PlayfairDisplay', serif; }

.gradient-text {
    background: linear-gradient(90deg, #FFC107, #FF3399); 
    -webkit-background-clip: text; 
    background-clip: text; 
    color: transparent;
}

/* Animation Néon Glow */
@keyframes neonPulse {
    0% { text-shadow: 0 0 10px rgba(255, 51, 153, 0.5); }
    50% { text-shadow: 0 0 25px rgba(255, 51, 153, 0.9), 0 0 50px rgba(255, 193, 7, 0.5); }
    100% { text-shadow: 0 0 10px rgba(255, 51, 153, 0.5); }
}

.glow {
    animation: neonPulse 3s infinite alternate;
}

/* =========================================
   5. GLASSMORPHISM & ANIMATIONS
   ========================================= */

.glass-panel {
    background: rgba(255, 255, 255, .03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   6. COMPOSANTS (BOUTONS, ETC.)
   ========================================= */

a.link-hover { transition: color 0.3s ease; }
a.link-hover:hover { color: #FF3399; text-decoration: underline; }

.hover-grow { transition: transform 0.3s ease; }
.hover-grow:hover { transform: scale(1.03); }

/* Animation flottante */
@keyframes float {
    0% { transform: translateY(1px) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(1px) rotate(-5deg); }
}
.floating-card { animation: float 6s ease-in-out infinite; }

/* Bannière Cookies */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background-color: #18181b; color: #f1f1f1;
    padding: 1rem 1.5rem; display: none;
    justify-content: space-between; align-items: center;
    z-index: 9999; font-size: 14px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    flex-wrap: wrap; gap: 1rem;
}
.cookie-banner p { margin: 0; flex-grow: 1; }
.cookie-banner a { color: #ffcc00; text-decoration: underline; }
.cookie-buttons { display: flex; gap: 0.5rem; }
.cookie-buttons button {
    padding: 0.5rem 1rem; border: none; border-radius: 4px;
    cursor: pointer; font-weight: bold; transition: opacity 0.2s;
}
#cookie-accept { background-color: #10b981; color: white; }
#cookie-decline { background-color: #ef4444; color: white; }
#cookie-accept:hover, #cookie-decline:hover { opacity: 0.9; }