/* ============================================================
   DJ ARTHUR — Feuille de styles principale
   ============================================================
   Sections :
   1.  Reset & base
   2.  Typographie & textes
   3.  Navigation
   4.  Boutons
   5.  Cartes & glass
   6.  Waveform / vinyle
   7.  Démo & filtres
   8.  Karaoké
   9.  Réseaux sociaux (cards)
   10. Animations & utilitaires
   11. Responsive (≤ 768 px)
   ============================================================ */


/* ============================================================
   0. VARIABLES — Palette de couleurs
   ============================================================
   Toutes les couleurs réutilisées sont centralisées ici.
   Pour les usages rgba(), les valeurs RGB brutes sont stockées
   séparément (ex: --accent-rgb) afin de pouvoir écrire
   rgba(var(--accent-rgb), 0.4) sans surcharge de syntaxe.
   ============================================================ */
:root {
    /* ── Polices ── */
    --font-body:    'Poppins', sans-serif;     /* corps de texte, boutons, UI */
    --font-display: 'Orbitron', sans-serif;   /* titres, vinyle, logo */

    /* ── Fonds ── */
    --color-bg:             #0A0A0A;           /* fond global du site */
    --color-bg-dark:        #050308;           /* fond vinyle / éléments très sombres */
    --color-bg-card:        rgba(26, 26, 26, 0.7); /* fond glass-card */
    --color-bg-card-social: #0a0a0e;          /* fond cards réseaux sociaux */

    /* ── Accent bleu — couleur principale ── */
    --color-accent:         #0760EE;
    --accent-rgb:           7, 96, 238;        /* pour rgba(var(--accent-rgb), opacité) */

    /* ── Accent rose / magenta ── */
    --color-accent-pink:    #FF00F5;
    --accent-pink-rgb:      255, 0, 245;

    /* ── Accent jaune ── */
    --color-accent-yellow:  #FFE600;

    /* ── Accent orange (secondaire, halos & karaoké) ── */
    --accent-orange-rgb:    238, 96, 7;

    /* ── Texte ── */
    --color-text:           #ffffff;
    --color-text-muted:     #d0d0d0;
    --color-text-dim:       #555555;

    /* ── Boutons ── */
    --color-btn-dark:       #03142e;           /* fond le plus sombre (btn-neon, btn-outline) */
    --color-btn-mid:        #0a2a5e;           /* fond intermédiaire (btn-neon, btn-outline border) */

    /* ── Bordures ── */
    --color-border-social:  #1e1e28;           /* bordure cards réseaux sociaux */
    /* ── Réseaux sociaux ── */
    --color-instagram:     #e1306c;
    --instagram-rgb:       225, 48, 108;
    --color-tiktok:        #d2d2d2;
    --tiktok-rgb:          210, 210, 210;
    --color-youtube:       #ff0000;
    --youtube-rgb:         255, 0, 0;
    --color-twitch:        #9146ff;
    --twitch-rgb:          145, 70, 255;
    --color-soundcloud:    #ff5500;
    --soundcloud-rgb:      255, 85, 0;
}


/* ============================================================
   1. RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: var(--color-bg);
    scrollbar-width: none;
}

::-webkit-scrollbar          { width: 0px; display: none; }
::-webkit-scrollbar-track    { background: transparent; }
::-webkit-scrollbar-thumb    { background: transparent; }


/* ============================================================
   2. TYPOGRAPHIE & TEXTES
   ============================================================ */
.gradient-text {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-pink) 50%, var(--color-accent-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.neon-glow {
    text-shadow:
        0 0 10px rgba(var(--accent-rgb), 0.8),
        0 0 20px rgba(var(--accent-rgb), 0.6),
        0 0 30px rgba(var(--accent-rgb), 0.4),
        0 0 40px rgba(var(--accent-rgb), 0.2);
}


/* ============================================================
   3. NAVIGATION
   ============================================================ */
.glass-nav {
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Fluid Mobile Nav ────────────────────────────────────── */

/* Bouton toggle principal */
.fluid-nav-toggle {
    position: relative;
    width: 56px;
    height: 56px;
    background: rgba(8, 10, 20, 0.97);
    border: 1.5px solid rgba(57, 131, 249, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow:
        0 0 24px rgba(57, 131, 249, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.6);
    transition: border-color 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(12px);
}

.fluid-nav-toggle:hover {
    border-color: rgba(57, 131, 249, 0.9);
    box-shadow:
        0 0 32px rgba(57, 131, 249, 0.4),
        0 4px 20px rgba(0, 0, 0, 0.7);
}

/* Icônes toggle (hamburger / X) */
.fluid-toggle-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fluid-toggle-icon i {
    color: #3983F9;
    font-size: 1.1rem;
}

.fluid-icon-bars {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.fluid-icon-x {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
}

#fluidNavToggle.open .fluid-icon-bars {
    opacity: 0;
    transform: scale(0) rotate(180deg);
}

#fluidNavToggle.open .fluid-icon-x {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Items de navigation */
.fluid-nav-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
    background: rgba(8, 10, 20, 0.97);
    border: 1.5px solid rgba(57, 131, 249, 0.25);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    z-index: 2;
    backdrop-filter: blur(12px);
    clip-path: circle(50% at 50% 50%);

    /* Caché par défaut (empilé sous le toggle) */
    transform: translateY(0);
    opacity: 0;
    pointer-events: none;

    transition:
        transform 300ms cubic-bezier(0.4, 0, 0.2, 1),
        opacity   280ms ease,
        border-color 0.2s,
        box-shadow   0.2s;
    will-change: transform;
}

.fluid-nav-item i {
    color: #A0A0A0;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.fluid-nav-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.37rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #A0A0A0;
    transition: color 0.2s;
}

.fluid-nav-item:hover {
    border-color: rgba(57, 131, 249, 0.7);
    box-shadow: 0 0 18px rgba(57, 131, 249, 0.2);
}

.fluid-nav-item:hover i,
.fluid-nav-item:hover .fluid-nav-label {
    color: #3983F9;
}

/* Item Live spécial */
.fluid-nav-live:not(.hidden) {
    border-color: rgba(239, 68, 68, 0.4);
}

.fluid-nav-live:hover {
    border-color: rgba(239, 68, 68, 0.8) !important;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.25) !important;
}

.fluid-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: fluid-pulse 1.5s ease-in-out infinite;
    display: block;
}

@keyframes fluid-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    50%       { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* Fond rectangulaire verre derrière les items déployés */
.fluid-nav-backdrop {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 72px;
    height: 0;
    border-radius: 16px;
    background: rgba(8, 10, 20, 0.92);
    border: 1px solid rgba(57, 131, 249, 0.28);
    backdrop-filter: blur(20px);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(57, 131, 249, 0.08) inset;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition:
        height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease;
}

#fluidNav.open .fluid-nav-backdrop {
    /* 5 items × 60px + 16px padding (8px haut + 8px bas) */
    height: 316px;
    opacity: 1;
}

/* Quand le Live est visible : agrandir le backdrop pour 6 items */
#fluidNav.open.has-live .fluid-nav-backdrop {
    height: 376px;
}

/* État ouvert — items qui descendent */
#fluidNav.open .fluid-nav-item {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(calc((var(--fluid-idx) - 1) * 60px));
}

/* Délais d'apparition en cascade (rapide) */
#fluidNav.open .fluid-nav-item[data-target="home"]    { transition-delay: 0ms;  }
#fluidNav.open .fluid-nav-item[data-target="demo"]    { transition-delay: 30ms; }
#fluidNav.open .fluid-nav-item[data-target="karaoke"] { transition-delay: 55ms; }
#fluidNav.open .fluid-nav-item[data-target="setup"]   { transition-delay: 80ms; }
#fluidNav.open .fluid-nav-item[data-target="booking"] { transition-delay: 105ms;}
#fluidNav.open .fluid-nav-item[data-target="live"]    { transition-delay: 130ms;}


/* ============================================================
   4. BOUTONS
   ============================================================ */
.btn-neon {
    position: relative;
    background: linear-gradient(135deg, var(--color-btn-mid) 0%, var(--color-btn-dark) 100%);
    border: 2px solid var(--color-accent);
    color: var(--color-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-neon:hover {
    animation: btn-neon-jello 0.9s both;
}

@keyframes btn-neon-jello {
    0%   { transform: scale3d(1,    1,    1); }
    30%  { transform: scale3d(1.25, 0.75, 1); }
    40%  { transform: scale3d(0.75, 1.25, 1); }
    50%  { transform: scale3d(1.15, 0.85, 1); }
    65%  { transform: scale3d(0.95, 1.05, 1); }
    75%  { transform: scale3d(1.05, 0.95, 1); }
    100% { transform: scale3d(1,    1,    1); }
}

.btn-gradient {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-pink) 100%);
    border: none;
    color: var(--color-bg);
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-gradient:hover::after { width: 300px; height: 300px; }
.btn-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(var(--accent-rgb), 0.4);
}

.btn-outline {
    position: relative;
    background: var(--color-bg);
    border: 2px solid var(--color-btn-mid);
    color: var(--color-text);
    font-weight: 700;
    overflow: hidden;
    transition: color 0.4s ease;
    z-index: 0;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-btn-dark) 100%);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-outline:hover::before {
    left: 0;
}


/* ============================================================
   5. CARTES & GLASS
   ============================================================ */
.glass-card {
    position: relative;
    overflow: hidden;
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(var(--accent-rgb), 0.6);
    box-shadow: 0 20px 60px rgba(var(--accent-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Spotlight (effet lumière curseur) */
.spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

/* Grille de fond */
.grid-bg {
    background-image:
        linear-gradient(rgba(var(--accent-rgb), 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Fond animé hero */
.animated-bg { position: relative; overflow: hidden; }

.animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(var(--accent-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(var(--accent-orange-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 230, 0, 0.05) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-20px); }
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1) 0%, rgba(var(--accent-orange-rgb), 0.1) 100%);
    border-left: 3px solid var(--color-accent);
}


/* ============================================================
   6. WAVEFORM & VINYLE
   ============================================================ */
.waveform-container {
    /* Sur desktop : taille proportionnelle à la hauteur de l'écran */
    --wf-size: clamp(280px, 44vh, 480px);
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--wf-size);
    width: var(--wf-size);
    margin: 0 auto;
    position: relative;
    cursor: default;
}

/* Anneaux contrarotatifs */
.wf-ring {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.wf-ring-inner { animation: wf-ccw 18s linear infinite; }

@keyframes wf-cw  { to { transform: rotate(360deg);  } }
@keyframes wf-ccw { to { transform: rotate(-360deg); } }

/* Barres */
.wf-bar {
    position: absolute;
    bottom: 50%;
    left: 50%;
    border-radius: 999px;
    transform-origin: bottom center;
    will-change: height, opacity;
    transition:
        height  .15s cubic-bezier(.25,.46,.45,.94),
        opacity .15s ease,
        filter  .15s ease;
}

@keyframes wf-breathe {
    0%, 100% { height: var(--hA); opacity: var(--oA); }
    50%       { height: var(--hB); opacity: 1; }
}

/* Orbes */
.wf-orb {
    position: absolute;
    bottom: 50%;
    left: 50%;
    border-radius: 50%;
    transform-origin: bottom center;
    animation: wf-orb-pulse var(--dur) ease-in-out var(--del) infinite;
}

@keyframes wf-orb-pulse {
    0%, 100% { opacity: .12; transform: rotate(var(--r)) translateY(calc(-1 * var(--d))) scale(.55); }
    50%       { opacity: 1;   transform: rotate(var(--r)) translateY(calc(-1 * var(--d))) scale(1.5);  }
}

/* Halos */
.wf-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.wf-halo-a {
    width: calc(var(--wf-size) * 0.70);
    height: calc(var(--wf-size) * 0.70);
    background: radial-gradient(circle, rgba(var(--accent-rgb), .22) 0%, transparent 70%);
    animation: wf-halo-breathe 4s ease-in-out infinite;
}

.wf-halo-b {
    width: calc(var(--wf-size) * 0.85);
    height: calc(var(--wf-size) * 0.85);
    background: radial-gradient(circle, rgba(var(--accent-pink-rgb), .10) 0%, transparent 70%);
    animation: wf-halo-breathe 6s ease-in-out 2s infinite;
}

@keyframes wf-halo-breathe {
    0%, 100% { transform: translate(-50%,-50%) scale(1);    opacity: .55; }
    50%       { transform: translate(-50%,-50%) scale(1.16); opacity: 1;   }
}

/* Cercle central (vinyle) */
.waveform-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(var(--wf-size) * 0.645);
    height: calc(var(--wf-size) * 0.645);
    border-radius: 50%;
    background: var(--color-bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.06),
        0 0 30px rgba(var(--accent-rgb), 0.18),
        0 0 60px rgba(var(--accent-rgb), 0.07);
    animation: wf-vinyl-spin 4s linear infinite;
    transition:
        width  .55s cubic-bezier(.34,1.4,.64,1),
        height .55s cubic-bezier(.34,1.4,.64,1),
        box-shadow .4s ease;
}

@keyframes wf-vinyl-spin {
    from { transform: translate(-50%,-50%) rotate(0deg); }
    to   { transform: translate(-50%,-50%) rotate(360deg); }
}

.waveform-center:hover,
.waveform-center.center-hovered {
    animation-play-state: paused;
    width: calc(var(--wf-size) * 0.695);
    height: calc(var(--wf-size) * 0.695);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.10),
        0 0 40px rgba(80,40,255,0.25),
        0 0 80px rgba(var(--accent-rgb), 0.12);
}

.vinyl-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    animation: wf-vinyl-contra 4s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes wf-vinyl-contra {
    from { transform: translate(-50%,-50%) rotate(0deg); }
    to   { transform: translate(-50%,-50%) rotate(-360deg); }
}

.waveform-center:hover .vinyl-label,
.waveform-center.center-hovered .vinyl-label {
    animation-play-state: paused;
}

.vinyl-dj {
    font-family: var(--font-display);
    font-size: calc(var(--wf-size) * 0.095);
    font-weight: 800;
    color: rgba(255,255,255,0.92);
    letter-spacing: 5px;
    line-height: 1;
    display: block;
}

.vinyl-name {
    font-family: var(--font-body);
    font-size: calc(var(--wf-size) * 0.0425);
    font-weight: 400;
    letter-spacing: 5px;
    text-indent: 4px;
    text-transform: uppercase;
    color: rgba(180,140,255,0.7);
    line-height: 1;
    display: block;
}

.vinyl-spin       { animation: spin 20s linear infinite; }
.vinyl-spin:hover { animation-duration: 3s; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}


/* ============================================================
   7. DÉMO — FILTRES
   ============================================================ */
.demo-filter-btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.demo-filter-btn.active-filter {
    background-color: currentColor !important;
    border-color: currentColor !important;
    box-shadow: 0 0 10px currentColor, 0 0 22px currentColor;
    transform: translateY(-2px) scale(1.07) !important;
}

.demo-filter-btn .btn-label {
    position: relative;
    z-index: 1;
    transition: color 0.25s ease;
}

.demo-filter-btn.active-filter .btn-label {
    color: var(--color-bg) !important;
    font-weight: 700;
}


/* ============================================================
   8. KARAOKÉ
   ============================================================ */
.karaoke-line {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 8px 16px;
    border-radius: 8px;
}

.karaoke-line.active {
    background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-orange-rgb), 0.2));
    transform: scale(1.05);
    font-weight: 700;
    color: var(--color-accent);
}


/* ============================================================
   9. RÉSEAUX SOCIAUX — CARDS
   ============================================================ */
.cards-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    position: relative;
    width: 165px;
    padding: 28px 18px 22px;
    border-radius: 18px;
    background: var(--color-bg-card-social);
    border: 1px solid var(--color-border-social);
    overflow: hidden;
    cursor: pointer;
    transition:
        border-color 0.4s ease,
        box-shadow   0.4s ease,
        transform    0.4s cubic-bezier(.22,.68,0,1.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.card:hover { transform: translateY(-8px) scale(1.03); }

.card-icon {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.card-icon i              { font-size: 27px; color: #fff; line-height: 1; }
.card:hover .card-icon    { transform: scale(1.12) rotate(-4deg); }

.card-name {
    position: relative;
    z-index: 1;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.card-followers {
    position: relative;
    z-index: 1;
    font-size: 0.67rem;
    color: var(--color-text-dim);
    transition: color 0.3s;
}

.card:hover .card-followers { color: #999; }

.card-btn {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    padding: 6px 20px;
    border-radius: 50px;
    border: none;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    background: rgba(255,255,255,0.08);
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-btn i           { font-size: 11px; }
.card:hover .card-btn { background: rgba(255,255,255,0.18); transform: scale(1.05); }

.card--instagram .card-icon { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.card--instagram:hover { border-color: rgba(var(--instagram-rgb), 0.4); box-shadow: 0 18px 50px rgba(var(--instagram-rgb), 0.15); }

.card--tiktok .card-icon { background: #010101; border: 1.5px solid #222; }
.card--tiktok:hover { border-color: rgba(var(--tiktok-rgb), 0.25); box-shadow: 0 18px 50px rgba(var(--tiktok-rgb), 0.08); }

.card--youtube .card-icon { background: var(--color-youtube); }
.card--youtube:hover { border-color: rgba(var(--youtube-rgb), 0.4); box-shadow: 0 18px 50px rgba(var(--youtube-rgb), 0.15); }

.card--twitch .card-icon { background: var(--color-twitch); }
.card--twitch:hover { border-color: rgba(var(--twitch-rgb), 0.45); box-shadow: 0 18px 50px rgba(var(--twitch-rgb), 0.18); }

.card--soundcloud .card-icon { background: var(--color-soundcloud); }
.card--soundcloud:hover { border-color: rgba(var(--soundcloud-rgb), 0.45); box-shadow: 0 18px 50px rgba(var(--soundcloud-rgb), 0.18); }

/* Variante petite (footer) */
.card-sm { width: 108px !important; padding: 16px 10px 14px !important; gap: 5px !important; border-radius: 14px !important; }
.card-sm .card-icon      { width: 36px !important; height: 36px !important; border-radius: 10px !important; }
.card-sm .card-icon i    { font-size: 18px !important; }
.card-sm .card-name      { font-size: 0.72rem !important; }
.card-sm .card-followers { font-size: 0.58rem !important; }
.card-sm .card-btn       { padding: 4px 12px !important; font-size: 0.6rem !important; margin-top: 4px !important; }


/* ============================================================
   10. ANIMATIONS & UTILITAIRES
   ============================================================ */
@keyframes fadeInUp {
    0%   { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0);    opacity: 1; }
}

.animate-fade-in-up  { animation: fadeInUp 0.6s ease-out forwards; }
.animate-bounce-slow { animation: bounce 3s infinite; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}


/* ============================================================
   11. RESPONSIVE — mobile ≤ 768 px
   ============================================================ */
@media (max-width: 768px) {
    #main-nav nav         { display: none; }
    #main-nav .mobile-btn { display: block; }

    /* Sur mobile : taille proportionnelle à la largeur de l'écran */
    .waveform-container { --wf-size: clamp(200px, 68vw, 320px); }

    /* Les halos, le vinyle et les polices se recalculent automatiquement via calc() */

    /* Spotlight statique simulé sur mobile */
    .card .spotlight {
        opacity: 1 !important;
        background: radial-gradient(
            circle 220px at 90% -10%,
            var(--card-glow-color-1, rgba(255,255,255,0.28)) 0%,
            var(--card-glow-color-2, rgba(255,255,255,0.09)) 35%,
            transparent 70%
        ) !important;
        transition: none !important;
    }

    .card--instagram  { --card-glow-color-1: rgba(var(--instagram-rgb), 0.32);  --card-glow-color-2: rgba(var(--instagram-rgb), 0.10); }
    .card--tiktok     { --card-glow-color-1: rgba(var(--tiktok-rgb), 0.28);     --card-glow-color-2: rgba(var(--tiktok-rgb), 0.09); }
    .card--youtube    { --card-glow-color-1: rgba(var(--youtube-rgb), 0.32);    --card-glow-color-2: rgba(var(--youtube-rgb), 0.10); }
    .card--twitch     { --card-glow-color-1: rgba(var(--twitch-rgb), 0.32);     --card-glow-color-2: rgba(var(--twitch-rgb), 0.10); }
    .card--soundcloud { --card-glow-color-1: rgba(var(--soundcloud-rgb), 0.32); --card-glow-color-2: rgba(var(--soundcloud-rgb), 0.10); }
}

/* ============================================================
   12. SECTION EVENT — vidéo de fond
   ============================================================ */

#eventBgVideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* ============================================================
   13. LAZY VIDEO — placeholder clic-pour-charger
   ============================================================ */

/* Grille en fond */
.lazy-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Overlay sombre pour lisibilité */
.lazy-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    pointer-events: none;
    transition: background 0.3s ease;
}

.lazy-video-wrapper:hover .lazy-overlay {
    background: rgba(0,0,0,0.2);
}

/* Bouton play */
.lazy-play-btn {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: lazy-pulse 2.5s ease-in-out infinite;
}

.lazy-play-btn i {
    font-size: 24px;
    color: #fff;
    margin-left: 4px;
}

.lazy-video-wrapper:hover .lazy-play-btn {
    background: rgba(255,255,255,0.3);
    transform: scale(1.12);
    box-shadow: 0 0 30px rgba(255,255,255,0.3);
    animation: none;
}

@keyframes lazy-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.35); }
    50%       { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
}

/* Titre */
.lazy-title {
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-align: center;
    padding: 0 20px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* Hint */
.lazy-hint {
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: 0.68rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.lazy-video-wrapper:hover .lazy-hint {
    color: rgba(255,255,255,0.75);
}

/* Iframe injectée au clic */
.lazy-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   DEMO GRID — Scroll horizontal drag (mobile)
═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    #demoCarouselPrev,
    #demoCarouselNext {
        display: none !important;
    }

    #demoGrid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: none;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 16px !important;
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 16px;
        /* Déborde légèrement du container pour effet edge-peek */
        margin-left: -16px;
        margin-right: -16px;
        cursor: default;
        user-select: none;
        /* Empêche le flash de fond noir lors du saut de scroll infini */
        background: var(--color-bg);
        /* Force le compositing GPU — élimine le rectangle noir au scroll */
        will-change: scroll-position;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    #demoGrid::-webkit-scrollbar {
        display: none;
    }

    #demoGrid.demo-dragging {
        cursor: default;
    }
    #demoGrid.demo-jumping {
    }

    #demoGrid .demo-card {
        flex: 0 0 85vw;
        min-width: 0;
        scroll-snap-align: none;
        max-width: 340px;
    }
}
