:root {
    --bg-dark: #07070f;
    --bg-card: rgba(255, 255, 255, 0.04);
    --primary: #ff0055;
    --secondary: #00ffcc;
    --accent-yellow: #ffcc00;
    --accent-violet: #8b5cf6;
    --text-main: #f4f4f8;
    --text-muted: #9ca3af;
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --gradient-hero: linear-gradient(135deg, #ff0055 0%, #7000ff 50%, #00d4ff 100%);
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius-lg: 20px;
    --radius-md: 14px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    /* clip préserve sticky ; hidden casse souvent le sticky sur Android */
    overflow-x: clip;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: clip;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.25s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Fond mesh — animé par Anime.js */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.bg-mesh::before,
.bg-mesh::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
}
.bg-mesh::before {
    width: 60vw; height: 60vw;
    top: -20%; left: -10%;
    background: radial-gradient(circle, #ff0055, transparent 70%);
}
.bg-mesh::after {
    width: 50vw; height: 50vw;
    bottom: -15%; right: -10%;
    background: radial-gradient(circle, #00d4ff, transparent 70%);
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: orb-breathe 4.064s ease-in-out infinite;
}
.orb-1 { width: 30vw; height: 30vw; top: 40%; left: 30%; background: #ffcc00; }
.orb-2 { width: 25vw; height: 25vw; top: 60%; right: 20%; background: #8b5cf6; animation-delay: 2s; }

/* Animations — contenu toujours visible ; effets si le mouvement est autorisé */
.js-fade { opacity: 1; transform: none; }

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-2.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(1.2rem); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-up-badge {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes hero-title-in {
    from { opacity: 0; transform: translateY(2rem) scale(0.88); letter-spacing: 0.35em; }
    to   { opacity: 1; transform: translateY(0) scale(1); letter-spacing: 0.05em; }
}
@keyframes eq-pulse {
    0%, 100% { transform: scaleY(0.22); }
    50%      { transform: scaleY(1); }
}
@keyframes note-drift {
    0%, 100% { transform: translateY(0) rotate(-8deg) scale(1); opacity: 0.22; }
    50%      { transform: translateY(-18px) rotate(8deg) scale(1.12); opacity: 0.55; }
}
@keyframes orb-breathe {
    0%, 100% { transform: scale(1); opacity: 0.25; }
    50%      { transform: scale(1.08); opacity: 0.38; }
}
@keyframes pulse-animation {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 204, 0.35);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px 6px rgba(0, 255, 204, 0.5);
    }
}
@keyframes vinyl-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes wave-glow {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 0.7; }
}
@keyframes wave-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes cover-breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.018); }
}
@keyframes mesh-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(20px, -15px) scale(1.05); }
}

/* Animations actives par défaut (y compris Firefox / Edge PC) */
header.js-fade { animation: slide-down 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-intro .tagline.js-fade { animation: fade-up 0.7s ease 0.55s both; }
.hero-intro .badge-live.js-fade {
    animation: fade-up-badge 0.6s ease 0.75s both, pulse-animation 2s ease-in-out 1.4s infinite;
}
.bio-card.js-fade { animation: fade-up 0.8s ease both; }
.contact-section.js-fade { animation: fade-up 0.8s ease both; }
footer.js-fade { animation: fade-up 0.6s ease both; }

.bg-mesh::before { animation: mesh-drift 14s ease-in-out infinite alternate; }
.bg-mesh::after  { animation: mesh-drift 12s ease-in-out infinite alternate-reverse; }

/* Accessibilité : ralentir sans tout couper */
@media (prefers-reduced-motion: reduce) {
    .eq-bar,
    .note-float,
    .orb,
    .cover-3d,
    .waveform,
    .wave-track,
    .release-card.featured .vinyl-groove {
        animation-duration: 3s !important;
    }
    .wave-track {
        animation: none !important;
    }
    header.js-fade,
    .hero-intro .tagline.js-fade,
    .hero-intro .badge-live.js-fade,
    .hero-intro h1,
    .section-title span,
    .bio-card.js-fade {
        animation: none !important;
    }
}

/* Header */
header {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.banner-container { max-width: 976px; width: 100%; }
.banner-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Hero intro */
.hero-intro {
    position: relative;
    text-align: center;
    padding: clamp(48px, 8vw, 96px) 20px clamp(32px, 5vw, 64px);
    overflow: hidden;
}

/* Scène musicale : égaliseur + waveform */
.music-stage {
    position: relative;
    max-width: 640px;
    margin: 0 auto 32px;
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}
.music-eq {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    height: 72px;
    padding: 0 12px;
    z-index: 2;
}
.eq-bar {
    display: block;
    width: 6px;
    height: 64px;
    border-radius: 3px;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    transform-origin: bottom center;
    opacity: 0.85;
    box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 40%, transparent);
    will-change: transform;
    animation: eq-pulse 0.508s ease-in-out infinite alternate;
}
.eq-bar:nth-child(odd) { background: linear-gradient(to top, #7000ff, #00d4ff); }
.eq-bar:nth-child(1)  { animation-duration: 0.38s; animation-delay: 0s; }
.eq-bar:nth-child(2)  { animation-duration: 0.44s; animation-delay: 0.04s; }
.eq-bar:nth-child(3)  { animation-duration: 0.36s; animation-delay: 0.08s; }
.eq-bar:nth-child(4)  { animation-duration: 0.48s; animation-delay: 0.02s; }
.eq-bar:nth-child(5)  { animation-duration: 0.40s; animation-delay: 0.06s; }
.eq-bar:nth-child(6)  { animation-duration: 0.46s; animation-delay: 0.10s; }
.eq-bar:nth-child(7)  { animation-duration: 0.42s; animation-delay: 0.03s; }
.eq-bar:nth-child(8)  { animation-duration: 0.50s; animation-delay: 0.07s; }
.eq-bar:nth-child(9)  { animation-duration: 0.37s; animation-delay: 0.11s; }
.eq-bar:nth-child(10) { animation-duration: 0.45s; animation-delay: 0.05s; }
.eq-bar:nth-child(11) { animation-duration: 0.41s; animation-delay: 0.09s; }
.eq-bar:nth-child(12) { animation-duration: 0.47s; animation-delay: 0.01s; }
.eq-bar:nth-child(13) { animation-duration: 0.39s; animation-delay: 0.06s; }
.eq-bar:nth-child(14) { animation-duration: 0.43s; animation-delay: 0.12s; }
.eq-bar:nth-child(15) { animation-duration: 0.49s; animation-delay: 0.04s; }
.eq-bar:nth-child(16) { animation-duration: 0.35s; animation-delay: 0.08s; }
.waveform {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 560px);
    height: 56px;
    opacity: 0.5;
    z-index: 1;
    animation: wave-glow 2.032s ease-in-out infinite;
}
.wave-track {
    transform-box: fill-box;
    transform-origin: 0 50%;
    animation: wave-scroll 6s linear infinite;
    will-change: transform;
}
.wave-path {
    vector-effect: non-scaling-stroke;
}

.note-float {
    position: absolute;
    font-size: 1.4rem;
    opacity: 0.22;
    color: var(--secondary);
    pointer-events: none;
    user-select: none;
    will-change: transform, opacity;
    animation: note-drift 2.4s ease-in-out infinite;
}
.note-float:nth-child(1) { top: 8%; left: 8%; animation-delay: 0s; }
.note-float:nth-child(2) { top: 18%; right: 10%; color: var(--primary); font-size: 1.8rem; animation-delay: 0.5s; }
.note-float:nth-child(3) { bottom: 25%; left: 14%; color: var(--accent-yellow); font-size: 1.1rem; animation-delay: 1s; }
.note-float:nth-child(4) { bottom: 12%; right: 16%; font-size: 1.6rem; animation-delay: 1.5s; }

.hero-intro h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.5vw, 6px);
    margin-bottom: 12px;
    position: relative;
    z-index: 3;
    animation: hero-title-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
.hero-intro h1 .char {
    display: inline-block;
    background: var(--gradient-hero);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-intro .tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 300;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}
.hero-intro .badge-live {
    display: inline-block;
    margin-top: 24px;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(0, 255, 204, 0.12);
    border: 1px solid rgba(0, 255, 204, 0.35);
    color: var(--secondary);
    position: relative;
    z-index: 3;
}

.eq-bar.eq-bar--js {
    animation: none !important;
}

/* Section discographie */
.discography {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    overflow: visible;
}
.section-title {
    text-align: center;
    font-size: clamp(1.4rem, 3vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 48px;
    color: var(--text-main);
}
.section-title span {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.releases-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 22px;
    perspective: 1400px;
}

/* Carte release — Bento + couche 3D */
.release-card {
    grid-column: span 12;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: visible;
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.release-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-accent), var(--card-accent2));
}
.release-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        600px circle at var(--glow-x, 50%) var(--glow-y, 0%),
        color-mix(in srgb, var(--card-accent) 12%, transparent),
        transparent 45%
    );
    opacity: 0;
    pointer-events: none;
}
.release-card.is-tilting::after { opacity: 1; }
.release-card.is-tilting {
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.45),
        0 0 50px color-mix(in srgb, var(--card-accent) 18%, transparent);
}

.release-card.featured {
    grid-column: span 12;
    grid-template-columns: minmax(240px, 380px) 1fr;
    align-items: center;
    min-height: 320px;
}
.release-card.single {
    grid-column: span 4;
    grid-template-columns: 1fr;
    align-content: start;
}
/* Effet bento : la 2e carte de chaque rangée de 3 est décalée vers le bas.
   Les singles commencent en 2e position (la 1re carte étant l'album en vedette). */
.release-card.single:nth-of-type(3n + 3) { margin-top: 28px; }

/* Rangée incomplète : si seulement 2 singles restent en fin de grille,
   ils passent en demi-largeur pour occuper les 12 colonnes. La jaquette passe
   à gauche des infos afin de garder une taille comparable aux cartes en 1/3. */
.release-card.single:nth-of-type(3n + 2):nth-last-of-type(2),
.release-card.single:nth-of-type(3n + 2):nth-last-of-type(2) ~ .release-card.single {
    grid-column: span 6;
    grid-template-columns: minmax(200px, 300px) 1fr;
    align-items: center;
}
/* Rangée incomplète : un single seul en fin de grille est centré en demi-largeur. */
.release-card.single:nth-of-type(3n + 2):last-of-type {
    grid-column: 4 / span 6;
    grid-template-columns: minmax(200px, 300px) 1fr;
    align-items: center;
    margin-top: 0;
}

.release-cover {
    position: relative;
    border-radius: var(--radius-md);
    perspective: 900px;
    transform-style: preserve-3d;
}
.cover-3d {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    transform-style: preserve-3d;
    animation: cover-breathe 1.016s ease-in-out infinite;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.55),
        0 6px 0 color-mix(in srgb, var(--card-accent) 25%, #111);
}
.vinyl-groove {
    position: absolute;
    inset: -8px;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 0 4px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}
.release-card.featured .vinyl-groove {
    opacity: 0.65;
    inset: -12px;
    animation: vinyl-spin 24s linear infinite;
}
.cover-3d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cover-glare {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: soft-light;
}
.cover-edge {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 3;
}
.release-card.featured .cover-3d {
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.6),
        0 8px 0 color-mix(in srgb, var(--card-accent) 30%, #111);
}

.release-info { display: flex; flex-direction: column; gap: 12px; }
.release-type {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--card-accent) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--card-accent) 40%, transparent);
    color: var(--card-accent);
}
.release-title {
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
}
.release-card.featured .release-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

/* Boutons plateformes */
.platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.btn-platform {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
}
.btn-platform:not(.disabled):hover {
    border-color: var(--card-accent);
    background: color-mix(in srgb, var(--card-accent) 12%, transparent);
}
.btn-platform.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    border-style: dashed;
}
.btn-platform .soon {
    font-size: 0.7rem;
    opacity: 0.7;
    font-weight: 400;
}
.icon-svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* Biographie */
.bio-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}
.bio-card {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}
/* Liseré dégradé en haut de la carte, comme les cartes de la discographie */
.bio-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-hero);
}
.bio-lead {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
    color: var(--text-main);
}

/* Mise au point sur l'usage de l'IA : encart détaché du texte principal */
.bio-note {
    margin-top: 24px;
    padding: 16px 20px;
    border-left: 3px solid var(--secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: rgba(0, 255, 204, 0.07);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    line-height: 1.75;
    color: var(--text-muted);
}

.bio-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}
.bio-genres li {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent-violet);
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.35);
}

/* Contact */
.contact-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(to top, rgba(26, 11, 46, 0.6), transparent);
    border-top: 1px solid var(--glass-border);
}
.contact-section h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; color: var(--secondary); font-size: 0.9rem; }
input, textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 0, 85, 0.15);
}
.hp-field { display: none; opacity: 0; position: absolute; top: 0; left: -9999px; height: 0; width: 0; z-index: -1; }

button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: var(--gradient-hero);
    background-size: 200% auto;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 10px;
    transition: filter 0.2s, transform 0.2s;
}
button[type="submit"]:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

/* ===========================================================
   Bouton « ancien billet déchiré » — Carnival / Soumettre
   (remplace le bouton Envoyer ; type=submit conservé)
   =========================================================== */
button.ticket-btn {
    --paper-light: #e7d6b3;
    --paper: #d8c49d;
    --paper-dark: #b89f72;
    --blood: #6b0000;
    --blood-deep: #2a0000;

    position: relative;
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 14px auto 0;
    padding: 20px 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--blood);
    text-transform: uppercase;
    isolation: isolate;
    /* Encoches latérales de ticket (découpe en demi-cercles gauche/droite) */
    --notch: 16px;
    -webkit-mask:
        radial-gradient(circle var(--notch) at left center, #0000 98%, #000),
        radial-gradient(circle var(--notch) at right center, #0000 98%, #000);
    -webkit-mask-composite: source-in;
    mask:
        radial-gradient(circle var(--notch) at left center, #0000 98%, #000),
        radial-gradient(circle var(--notch) at right center, #0000 98%, #000);
    mask-composite: intersect;
    transition: transform 0.25s ease, filter 0.25s ease;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

/* Couche papier ancien : dégradé + grain (SVG turbulence, sans fichier externe) */
button.ticket-btn .ticket-btn__paper {
    position: absolute;
    inset: 0;
    z-index: -2;
    border: 2px dashed color-mix(in srgb, var(--blood) 55%, transparent);
    background-color: var(--paper);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E"),
        radial-gradient(120% 140% at 50% 0%, var(--paper-light) 0%, var(--paper) 48%, var(--paper-dark) 100%);
    background-blend-mode: multiply, normal;
    box-shadow: inset 0 0 28px rgba(80, 50, 10, 0.35);
}

/* Taches de sang / encre noire — invisibles puis révélées au survol */
button.ticket-btn .ticket-btn__ink {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.4s ease, transform 0.5s ease;
    background-image:
        radial-gradient(circle at 16% 26%, rgba(20, 0, 0, 0.85) 0 7px, transparent 9px),
        radial-gradient(circle at 22% 32%, rgba(20, 0, 0, 0.6) 0 3px, transparent 5px),
        radial-gradient(circle at 84% 70%, rgba(107, 0, 0, 0.8) 0 9px, transparent 12px),
        radial-gradient(circle at 78% 78%, rgba(107, 0, 0, 0.55) 0 4px, transparent 6px),
        radial-gradient(circle at 50% 92%, rgba(15, 0, 0, 0.5) 0 6px, transparent 14px),
        radial-gradient(circle at 90% 18%, rgba(15, 0, 0, 0.45) 0 2px, transparent 4px);
    pointer-events: none;
    mix-blend-mode: multiply;
}

button.ticket-btn .ticket-btn__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
button.ticket-btn .ticket-btn__row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
button.ticket-btn .ticket-btn__star {
    font-size: 0.85rem;
    color: var(--blood-deep);
    opacity: 0.85;
}
button.ticket-btn .ticket-btn__carnival {
    font-family: 'Playfair Display', 'Bodoni MT', Didot, Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 4px;
    color: var(--blood-deep);
}
button.ticket-btn .ticket-btn__action {
    font-family: 'Playfair Display', 'Bodoni MT', Didot, Georgia, 'Times New Roman', serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 6px;
    line-height: 1;
    color: var(--blood);
    text-shadow: 0 1px 0 rgba(255, 245, 220, 0.5);
}

/* Survol : sang/encre qui apparaissent + léger tremblement */
button.ticket-btn:hover,
button.ticket-btn:focus-visible {
    filter: drop-shadow(0 12px 22px rgba(70, 0, 0, 0.55));
    animation: ticket-tremble 0.5s ease-in-out infinite;
}
button.ticket-btn:hover .ticket-btn__ink,
button.ticket-btn:focus-visible .ticket-btn__ink {
    opacity: 1;
    transform: scale(1);
}
button.ticket-btn:active {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    animation: none;
}

@keyframes ticket-tremble {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-1px, 1px) rotate(-0.6deg); }
    40% { transform: translate(1px, -1px) rotate(0.5deg); }
    60% { transform: translate(-1px, 0) rotate(-0.4deg); }
    80% { transform: translate(1px, 1px) rotate(0.4deg); }
}

/* Accessibilité : pas de tremblement si mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    button.ticket-btn:hover,
    button.ticket-btn:focus-visible { animation: none; }
}

.message-box {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    text-align: center;
}
.success { background: rgba(0, 255, 204, 0.12); border: 1px solid var(--secondary); }
.error { background: rgba(255, 0, 85, 0.12); border: 1px solid var(--primary); }

/* Footer */
footer {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--glass-border);
}
footer p + p { margin-top: 6px; }
footer a {
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
footer a:hover { color: var(--primary); }

/* Bandeau cookies RGPD */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px;
    transform: translateY(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner--hide {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}
.cookie-banner__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 24px;
    background: rgba(10, 10, 18, 0.96);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
}
.cookie-banner__inner p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.55;
}
.cookie-banner__inner p strong { color: var(--text-main); }
.cookie-banner__inner code {
    font-size: 0.82em;
    color: var(--secondary);
}
.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}
.cookie-banner__actions a {
    font-size: 0.85rem;
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cookie-banner__actions button {
    padding: 10px 22px;
    background: var(--gradient-hero);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cookie-banner__actions button:hover { filter: brightness(1.12); }

/* Page mentions légales */
.legal-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}
.legal-page h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.legal-page .legal-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 40px;
    line-height: 1.7;
}
.legal-page h2 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin: 32px 0 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.legal-page p,
.legal-page li {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 12px;
    line-height: 1.7;
}
.legal-page ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 16px; }
.legal-page a { color: var(--secondary); text-decoration: underline; text-underline-offset: 3px; }
.legal-page a:hover { color: var(--primary); }
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--secondary);
}
.legal-back:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 1024px) {
    /* Tablette : grille nette de 2 singles par rangée (répartition desktop neutralisée) */
    .release-card.single,
    .release-card.single:nth-of-type(3n + 3),
    .release-card.single:nth-of-type(3n + 2):last-of-type,
    .release-card.single:nth-of-type(3n + 2):nth-last-of-type(2),
    .release-card.single:nth-of-type(3n + 2):nth-last-of-type(2) ~ .release-card.single {
        grid-column: span 6;
        grid-template-columns: 1fr;
        margin-top: 0;
    }
    /* Single seul sur la dernière rangée : pleine largeur */
    .release-card.single:nth-of-type(2n):last-of-type { grid-column: span 12; }
}
@media (max-width: 768px) {
    .release-card.featured {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: unset;
    }
    .release-card.single { grid-column: span 12 !important; margin-top: 0 !important; }
    .release-type { align-self: center; }
    .platforms { justify-content: center; }
    .bio-genres { justify-content: center; }
    .btn-platform { width: 100%; max-width: 320px; justify-content: center; }
    .cookie-banner__actions { flex-direction: column; align-items: stretch; }
    .cookie-banner__actions button { width: 100%; }
}
@media (max-width: 480px) {
    .release-card { padding: 20px; }
    .btn-platform { font-size: 0.78rem; padding: 9px 14px; }
}

/* Mobile / tablette — fond plus accueillant, formulaire lisible
   (Android : le blur des orbes paraît souvent plus sombre qu’en desktop) */
@media (max-width: 768px) {
    :root {
        --bg-dark: #15102c;
        --bg-card: rgba(255, 255, 255, 0.07);
        --glass-border: rgba(255, 255, 255, 0.16);
    }

    body {
        background-color: var(--bg-dark);
        background-image: linear-gradient(168deg, #221840 0%, #15102c 42%, #101828 100%);
        overscroll-behavior-y: contain;
    }

    /* Orbes plus visibles, teintes violet / cyan (moins fuschia agressif) */
    .bg-mesh::before,
    .bg-mesh::after {
        opacity: 0.5;
        filter: blur(72px);
    }
    .bg-mesh::before {
        background: radial-gradient(circle, #8b3dff 0%, #5a189a 45%, transparent 72%);
    }
    .bg-mesh::after {
        background: radial-gradient(circle, #00b8d4 0%, #0077b6 48%, transparent 72%);
    }
    .orb {
        opacity: 0.4;
        filter: blur(64px);
    }
    .orb-1 { background: #e6a800; }
    .orb-2 { background: #7c3aed; }

    .release-card {
        background: var(--bg-card);
        border-color: var(--glass-border);
        box-shadow:
            0 6px 28px rgba(0, 0, 0, 0.32),
            0 1px 0 rgba(255, 255, 255, 0.06) inset;
    }

    .contact-section {
        background: linear-gradient(to top, rgba(48, 28, 82, 0.82), rgba(22, 16, 48, 0.45));
    }

    /* Bloc formulaire bien détaché du fond */
    .contact-form {
        padding: 22px 18px;
        border-radius: var(--radius-lg);
        background: rgba(32, 26, 58, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow:
            0 10px 36px rgba(0, 0, 0, 0.38),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    label {
        color: #9ef5ea;
        font-weight: 600;
    }

    input, textarea {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.26);
        box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.22);
    }
    input::placeholder,
    textarea::placeholder {
        color: rgba(255, 255, 255, 0.42);
    }
    input:focus, textarea:focus {
        background: rgba(255, 255, 255, 0.14);
        border-color: var(--secondary);
        box-shadow:
            inset 0 1px 4px rgba(0, 0, 0, 0.18),
            0 0 0 3px rgba(0, 255, 204, 0.22);
    }

    /* EQ : légèrement plus lent sur mobile (était un poil trop rapide) */
    .eq-bar { animation-duration: 0.56s; }
    .eq-bar:nth-child(1)  { animation-duration: 0.42s; animation-delay: 0s; }
    .eq-bar:nth-child(2)  { animation-duration: 0.48s; animation-delay: 0.05s; }
    .eq-bar:nth-child(3)  { animation-duration: 0.40s; animation-delay: 0.09s; }
    .eq-bar:nth-child(4)  { animation-duration: 0.53s; animation-delay: 0.02s; }
    .eq-bar:nth-child(5)  { animation-duration: 0.44s; animation-delay: 0.07s; }
    .eq-bar:nth-child(6)  { animation-duration: 0.51s; animation-delay: 0.11s; }
    .eq-bar:nth-child(7)  { animation-duration: 0.46s; animation-delay: 0.03s; }
    .eq-bar:nth-child(8)  { animation-duration: 0.55s; animation-delay: 0.08s; }
    .eq-bar:nth-child(9)  { animation-duration: 0.41s; animation-delay: 0.12s; }
    .eq-bar:nth-child(10) { animation-duration: 0.50s; animation-delay: 0.06s; }
    .eq-bar:nth-child(11) { animation-duration: 0.45s; animation-delay: 0.10s; }
    .eq-bar:nth-child(12) { animation-duration: 0.52s; animation-delay: 0.01s; }
    .eq-bar:nth-child(13) { animation-duration: 0.43s; animation-delay: 0.07s; }
    .eq-bar:nth-child(14) { animation-duration: 0.47s; animation-delay: 0.13s; }
    .eq-bar:nth-child(15) { animation-duration: 0.54s; animation-delay: 0.04s; }
    .eq-bar:nth-child(16) { animation-duration: 0.39s; animation-delay: 0.09s; }

    /* Header : sticky + backdrop-filter provoque des saccades en bas de page sur Android */
    header {
        position: relative;
        top: auto;
        background: rgba(12, 10, 24, 0.96);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    header.js-fade {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Desktop — mesh + onde rapide + pulse badge (CSS natif, fiable PC) */
@media (min-width: 769px) {
    .bg-mesh::before {
        opacity: 0.28;
        background: radial-gradient(circle, #d4006a 0%, #6a00cc 52%, transparent 70%);
    }

    .wave-track {
        animation-duration: 0.9s;
    }
}
