/* =========================================
   1. IMPORTATIONS DE POLICES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&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: 'UrbanJungle';
    src: url('font/urbanjungledemo.otf') format('opentype');
    font-weight: normal;
    font-display: swap;
}

/* =========================================
   2. CONFIGURATION DES THÈMES (SOBRE & PREMIUM)
   ========================================= */

:root {
    /* Couleurs de fond globales */
    --bg-base: #050505; /* Noir mat texturé profond */
    --surface-color: rgba(255, 255, 255, 0.02); /* Panneaux très discrets */
    --surface-hover: rgba(255, 255, 255, 0.04);
    --border-color: rgba(255, 255, 255, 0.08); /* Bordures ultra fines */
    
    /* Thème Universe (Par défaut : Blanc/Gris) */
    --primary-color: #ffffff;
    --secondary-color: #a1a1aa;
    --ambient-light: rgba(255, 255, 255, 0.15); /* Lumière augmentée pour être visible */
}

/* Thème Studio (Bleu glacial) */
.theme-studio {
    --primary-color: #38bdf8;
    --secondary-color: #0284c7;
    --ambient-light: rgba(56, 189, 248, 0.20);
}

/* Thème RMX (Magenta / Rose Fluo) */
.theme-rmx {
    --primary-color: #ff49d2; 
    --secondary-color: #ff006a; 
    --ambient-light: rgba(236, 72, 153, 0.20);
}

/* Thème NCM (Jaune/Or sobre) */
.theme-ncm {
    --primary-color: #facc15;
    --secondary-color: #ca8a04;
    --ambient-light: rgba(250, 204, 21, 0.20);
}

/* Thème Underground (Violet/Cyber) */
.theme-underground {
    --primary-color: #c084fc;
    --secondary-color: #9333ea;
    --ambient-light: rgba(192, 132, 252, 0.20);
}

/* Thème Records & RMX (Bordeaux/Rose poudré) */
.theme-records {
    --primary-color: #6a131d;
    --secondary-color: #8C233B;
    --ambient-light: rgba(244, 114, 182, 0.20);
}

/* =========================================
   3. STYLES DE BASE & FOND D'ÉCRAN
   ========================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: #e4e4e7;
    overflow-x: hidden;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    
    /* COMBINAISON : Halo lumineux en haut + Motif Dot Matrix */
    background-image: 
        radial-gradient(ellipse 100% 60% at 50% -10%, var(--ambient-light), transparent),
        radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    
    background-size: 100% 100%, 24px 24px;
    background-position: center top, center top;
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em; /* Rend les titres plus "serrés" et premium */
}

section {
    scroll-margin-top: 80px;
}

main {
    flex-grow: 1;
}

/* =========================================
   4. SCROLLBAR MINIMALISTE
   ========================================= */
::-webkit-scrollbar {
    width: 6px; /* Plus fin */
}
::-webkit-scrollbar-track {
    background: var(--bg-base); 
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color); 
}

/* =========================================
   5. TYPOGRAPHIE & EFFETS
   ========================================= */

.font-urban { font-family: 'UrbanJungle', display; }

/* Gradient propre et net */
.gradient-text {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color)); 
    -webkit-background-clip: text; 
    background-clip: text; 
    color: transparent;
}

/* Glow fixe et élégant */
.glow {
    text-shadow: 0 0 20px var(--ambient-light);
}

/* =========================================
   6. BOUTONS MODERNES (Style "Solid to Outline")
   ========================================= */

.theme-btn {
    background-color: var(--primary-color);
    color: #000000; /* Texte foncé sur fond coloré (très moderne) */
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Au survol, le bouton devient transparent avec une bordure */
.theme-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--ambient-light);
}

/* =========================================
   7. GLASS PANELS (Design "Card" moderne)
   ========================================= */

.glass-panel {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px; /* Coins légèrement arrondis */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Survol plus doux : la bordure s'éclaire légèrement, la carte monte un peu */
.glass-panel:hover {
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform; 
}

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

/* =========================================
   8. UTILITAIRES & COOKIES
   ========================================= */

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

.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background-color: rgba(10, 10, 10, 0.95); 
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    color: #a1a1aa;
    padding: 1rem 1.5rem; display: none;
    justify-content: space-between; align-items: center;
    z-index: 9999; font-size: 13px;
    flex-wrap: wrap; gap: 1rem;
}
.cookie-banner p { margin: 0; flex-grow: 1; }
.cookie-banner a { color: var(--primary-color); text-decoration: none; }
.cookie-banner a:hover { text-decoration: underline; }
.cookie-buttons { display: flex; gap: 0.5rem; }
.cookie-buttons button {
    padding: 0.5rem 1rem; border: none; border-radius: 6px;
    cursor: pointer; font-weight: 600; transition: opacity 0.2s;
    font-size: 13px;
}
#cookie-accept { background-color: #fafafa; color: #000; }
#cookie-decline { background-color: transparent; border: 1px solid #3f3f46; color: #fff; }
#cookie-accept:hover, #cookie-decline:hover { opacity: 0.8; }

/* =========================================
   9. COMPOSANTS MODERNES (Badge, Bento, Marquee)
   ========================================= */

/* --- Badge "pill" avec point lumineux animé --- */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d4d4d8;
}
.badge-pill .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* --- Bento cards (héritent la couleur du thème parent) --- */
.bento-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s ease, box-shadow 0.4s ease;
}
.bento-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 50% 0%, var(--ambient-light), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
.bento-card:hover::before { opacity: 1; }
.bento-card .bento-icon {
    color: var(--primary-color);
    transition: transform 0.4s ease;
}
.bento-card:hover .bento-icon { transform: scale(1.12) translateY(-2px); }
.bento-card .bento-arrow {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.bento-card:hover .bento-arrow { transform: translateX(4px); }

/* --- Marquee défilant --- */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: #71717a;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.marquee-item:hover { color: #e4e4e7; }
.marquee-item i { font-size: 0.6rem; color: var(--secondary-color); }
@keyframes marquee-scroll {
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
    .badge-pill .dot { animation: none; }
}

/* --- Apparition auto-suffisante du composant Univers (indépendant de .reveal) --- */
.ux-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}
.ux-active {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .ux-reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================
   10. SECTIONS PRO (Eyebrow, FAQ, Form, Stats)
   ========================================= */

/* --- Eyebrow : petit label de section cohérent --- */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.section-eyebrow::before,
.section-eyebrow.center::after {
    content: "";
    width: 2rem;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color));
}
.section-eyebrow.center::before {
    background: linear-gradient(to left, transparent, var(--primary-color));
}

/* --- Accordéon FAQ (natif <details>, sans JS) --- */
.accordion-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.accordion-item[open] {
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--surface-hover);
}
.accordion-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #fff;
    transition: color 0.2s ease;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary:hover { color: var(--primary-color); }
.accordion-item summary .acc-icon {
    flex-shrink: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.accordion-item[open] summary .acc-icon { transform: rotate(180deg); }
.accordion-body {
    padding: 0 1.5rem 1.35rem;
    color: #a1a1aa;
    font-size: 0.925rem;
    line-height: 1.65;
}
.accordion-item[open] .accordion-body {
    animation: acc-fade 0.4s ease;
}
@keyframes acc-fade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Champs de formulaire unifiés --- */
.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.form-input::placeholder { color: #52525b; }
.form-input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--ambient-light);
}
.form-input option { background: #0a0a0a; color: #fff; }
.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #a1a1aa;
    margin-bottom: 0.5rem;
}

/* --- Tuiles de statistiques (couleur par thème) --- */
.stat-tile {
    padding: 1.25rem 0.5rem;
}
.stat-num {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--primary-color);
    text-shadow: 0 0 28px var(--ambient-light);
}
.stat-label {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a1a1aa;
}

/* --- Page Merci : cercle de validation --- */
.merci-check {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.25);
    animation: merci-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes merci-pop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .merci-check { animation: none; }
}

/* =========================================
   11. ACTUALITÉS GAMING (news feed)
   ========================================= */

/* Filtres par catégorie */
.news-filter {
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #a1a1aa;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.25s ease;
}
.news-filter:hover { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.news-filter--active {
    color: #000;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Carte article */
.news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.news-thumb {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #0a0a0a;
    position: relative;
}
.news-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 60%);
}
.news-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.12);
    font-size: 2.5rem;
    background: radial-gradient(circle at 50% 40%, var(--ambient-light), transparent 70%), #0a0a0a;
}
.news-card h3 {
    font-size: 1.02rem;
    transition: color 0.2s ease;
}
.news-card:hover h3 { color: var(--primary-color); }

/* Badge de source (nom du média) */
.news-source {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.news-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color);
    opacity: 0.85;
}
.news-card:hover .news-readmore { opacity: 1; }

/* Bandeau statut / attribution */
.news-attribution {
    font-size: 0.72rem;
    color: #52525b;
    line-height: 1.6;
}