/*
Theme Name: NABAÏ CAFARUN
Theme URI: https://nabai.world
Author: NABAÏ
Author URI: https://nabai.world
Description: Thème officiel de l'album CAFARUN — expérience immersive one-page. Sombre, vivant, enraciné. Glassmorphism, globe 3D, player audio flottant, animations.
Version: 2.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
License URI: https://nabai.world
Text Domain: nabai-cafarun
Tags: music, one-page, dark, immersive, custom-background, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS — Single source of truth
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  /* Backgrounds */
  --soot:          #0e0e0e;
  --soot-mid:      #141414;
  --soot-card:     #181818;

  /* Brand orange */
  --orange:        #D35400;
  --orange-glow:   rgba(211, 84, 0, 0.45);
  --orange-faint:  rgba(211, 84, 0, 0.08);
  --orange-border: rgba(211, 84, 0, 0.28);

  /* Glass */
  --glass:         rgba(255, 255, 255, 0.038);
  --border:        rgba(255, 255, 255, 0.07);
  --border-hi:     rgba(255, 255, 255, 0.13);

  /* Text hierarchy */
  --hi:            rgba(255, 255, 255, 0.93);
  --mid:           rgba(255, 255, 255, 0.52);
  --lo:            rgba(255, 255, 255, 0.26);
  --dim:           rgba(255, 255, 255, 0.14);

  /* Typography */
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Syne', sans-serif;
  --font-mono:     'Space Mono', monospace;

  /* Spacing scale */
  --sp-xs:   8px;
  --sp-sm:   16px;
  --sp-md:   32px;
  --sp-lg:   64px;
  --sp-xl:   120px;
  --sp-2xl:  180px;

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  32px;
  --r-pill: 60px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--soot);
  color: var(--hi);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
  body { cursor: auto; }
  #nabai-cursor, #nabai-cursor-ring { display: none; }
}

::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--soot); }
::-webkit-scrollbar-thumb { background: var(--orange); }

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════════════════════════════════════ */
#nabai-cursor,
#nabai-cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
#nabai-cursor {
  width: 8px;
  height: 8px;
  background: var(--orange);
  mix-blend-mode: screen;
  transition: width .15s, height .15s;
}
#nabai-cursor-ring {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(211, 84, 0, 0.4);
  transition: width .2s, height .2s;
}
body.cursor-hover #nabai-cursor {
  width: 14px;
  height: 14px;
}
body.cursor-hover #nabai-cursor-ring {
  width: 44px;
  height: 44px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */
.glass {
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid var(--border);
}

.glass-hi {
  background: rgba(255, 255, 255, 0.046);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border: 1px solid var(--border-hi);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(211, 84, 0, 0.06);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.58rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--orange);
  opacity: 0.5;
}

.s-div {
  width: 40px;
  height: 2px;
  background: var(--orange);
  margin: 20px 0;
  border-radius: 2px;
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--hi);
}
.sec-title em {
  color: var(--orange);
  font-style: italic;
}

.sec-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--mid);
  line-height: 1.75;
  max-width: 500px;
  margin-top: 28px;
}

/* Halo glow element */
.halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* Section wrapper */
section {
  position: relative;
  overflow: hidden;
}
.section-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-xl) 7vw;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */
.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  border-radius: var(--r-pill);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-hi);
  color: var(--hi);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.35s;
  cursor: pointer;
}
.btn-glass:hover {
  background: rgba(211, 84, 0, 0.1);
  border-color: var(--orange-border);
  box-shadow: 0 0 32px var(--orange-faint);
  transform: translateY(-2px);
}

.btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(.22,.61,.36,1), box-shadow 0.3s ease, opacity 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.btn-orange:hover {
  box-shadow: 0 8px 24px -6px rgba(211, 84, 0, 0.6);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(0.88); }
  50%       { transform: translate(-50%, -50%) scale(1.12); }
}

@keyframes bar-dance {
  0%, 100% { transform: scaleY(0.35); opacity: 0.35; }
  50%       { transform: scaleY(1);    opacity: 0.9; }
}

@keyframes e-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(211, 84, 0, 0.2); }
  50%       { box-shadow: 0 0 0 18px rgba(211, 84, 0, 0); }
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes ring-pulse {
  0%   { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════════════════ */
#nabai-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.4s, border-bottom 0.4s;
}
#nabai-nav.scrolled {
  background: rgba(14, 14, 14, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-decoration: none;
  color: var(--hi);
  flex-shrink: 0;
}
.nav-logo span { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--orange, #D35400); }

/* Mute button in nav */
#nabai-mute {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: none;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.3s;
  margin-left: 8px;
}
#nabai-mute:hover {
  border-color: var(--orange);
  color: var(--orange);
}
#nabai-mute:disabled {
  opacity: 0.3;
  pointer-events: none;
}
.mute-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  animation: dot-pulse 1.6s ease-in-out infinite;
}

/* Hamburger mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--hi);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(14, 14, 14, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 199;
  transform: translateY(-110%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-drawer.open { transform: translateY(0); }
.nav-drawer a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.3s;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.nav-drawer a:hover { color: var(--hi); }

/* ═══════════════════════════════════════════════════════════════════════════
   ENTRANCE SCREEN
   ═══════════════════════════════════════════════════════════════════════════ */
#nabai-entrance {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--soot);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.9s ease, visibility 0.9s;
}
#nabai-entrance.out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.entrance-halo {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 84, 0, 0.32) 0%, transparent 68%);
  filter: blur(50px);
  pointer-events: none;
  animation: breathe 4.5s ease-in-out infinite;
  top: 50%;
  left: 50%;
}
.entrance-cover {
  width: 100px;
  height: 100px;
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  object-fit: cover;
}
.entrance-label {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.entrance-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 0.06em;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}
.entrance-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--mid);
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
  letter-spacing: 0.05em;
}
.entrance-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 44px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(211, 84, 0, 0.42);
  background: rgba(211, 84, 0, 0.07);
  color: var(--hi);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s;
  animation: e-pulse 3s ease-out infinite;
  pointer-events: all;
}
.entrance-cta:hover {
  background: rgba(211, 84, 0, 0.17);
  border-color: var(--orange);
  box-shadow: 0 0 48px rgba(211, 84, 0, 0.28);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIQUID PLAYER (fixed)
   ═══════════════════════════════════════════════════════════════════════════ */
#nabai-player {
  position: fixed;
  z-index: 300;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#nabai-player.expanded {
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, 92vw);
  border-radius: 56px;
}
#nabai-player.collapsed {
  bottom: 24px;
  right: 24px;
  left: auto;
  transform: none;
  width: 64px;
  border-radius: 50%;
  cursor: pointer;
}
#nabai-player.hidden { display: none; }

.player-inner {
  padding: 12px 20px 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: inherit;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.046);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(211, 84, 0, 0.06);
  transition: padding 0.4s;
}
#nabai-player.collapsed .player-inner {
  padding: 0;
  justify-content: center;
  width: 64px;
  height: 64px;
}

/* PP button */
.player-pp {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.3s;
}
.player-pp:hover {
  transform: scale(1.1);
  box-shadow: 0 0 24px var(--orange-glow);
}

/* Prev/Next */
.player-prev,
.player-next {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  transition: all 0.25s;
  max-width: 28px;
  overflow: hidden;
  opacity: 1;
}
.player-prev:hover,
.player-next:hover {
  border-color: var(--orange);
  color: var(--orange);
}
#nabai-player.collapsed .player-prev,
#nabai-player.collapsed .player-next {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  border: none;
  padding: 0;
}

/* Info */
.player-info {
  flex: 1;
  overflow: hidden;
  transition: max-width 0.4s, opacity 0.3s;
  max-width: 240px;
}
#nabai-player.collapsed .player-info {
  max-width: 0;
  opacity: 0;
  pointer-events: none;
}
.player-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--hi);
}
.player-marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.player-marquee {
  font-size: 0.68rem;
  color: var(--mid);
  display: inline-block;
  white-space: nowrap;
  animation: marquee 14s linear infinite;
}

/* Seek row */
.player-seek-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}
.player-seek-row input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--orange) 0%, rgba(255, 255, 255, 0.12) 0%);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.player-seek-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  transition: transform 0.15s;
}
.player-seek-row input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.4);
}
.player-times {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Visualizer bars */
.vis-full {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  flex-shrink: 0;
  transition: max-width 0.4s, opacity 0.3s;
  max-width: 40px;
}
#nabai-player.collapsed .vis-full {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
}
.vis-mini {
  position: absolute;
  bottom: 5px;
  right: 6px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
#nabai-player.collapsed .vis-mini { opacity: 1; }

.bar {
  background: var(--orange);
  border-radius: 2px;
  transform-origin: bottom;
}
.bar.playing { animation: bar-dance 1.3s ease-in-out infinite; }

.b1 { width: 3px; height: 6px;  animation-delay: 0s; }
.b2 { width: 3px; height: 14px; animation-delay: 0.18s; }
.b3 { width: 3px; height: 10px; animation-delay: 0.36s; }
.b4 { width: 3px; height: 18px; animation-delay: 0.08s; }
.b5 { width: 3px; height: 8px;  animation-delay: 0.27s; }
.m1 { width: 2px; height: 4px;  animation-delay: 0s; }
.m2 { width: 2px; height: 8px;  animation-delay: 0.18s; }
.m3 { width: 2px; height: 5px;  animation-delay: 0.36s; }

/* Collapse button */
.player-collapse {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lo);
  transition: all 0.3s;
  flex-shrink: 0;
}
.player-collapse:hover {
  border-color: var(--orange);
  color: var(--orange);
}
#nabai-player.collapsed .player-collapse { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION: HERO
   ═══════════════════════════════════════════════════════════════════════════ */
#nabai-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 7vw;
  background: var(--soot);
}
.hero-content { position: relative; z-index: 1; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero-title em {
  color: var(--orange);
  font-style: italic;
}
.hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  color: var(--mid);
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 40px;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-cover {
  width: min(440px, 45vw);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 1;
  object-fit: cover;
}
.hero-cover-glow {
  position: absolute;
  inset: -30px;
  border-radius: var(--r-xl);
  background: radial-gradient(circle at 50% 50%, rgba(211, 84, 0, 0.3) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  animation: breathe 5s ease-in-out infinite;
}
.hero-badge {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 8px 20px;
  border-radius: var(--r-sm);
  background: rgba(14, 14, 14, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-hi);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION: LA BASCULE (bento cards)
   ═══════════════════════════════════════════════════════════════════════════ */
#nabai-bascule {
  background: var(--soot-mid);
  padding: var(--sp-xl) 7vw;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.bento-card {
  padding: 36px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--soot-card);
  transition: border-color 0.3s, transform 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(211, 84, 0, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.bento-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(211, 84, 0, 0.3),
    inset 0 0 0 1px rgba(211, 84, 0, 0.2);
}
.bento-card:hover::before { opacity: 1; }
.bento-kw {
  font-family: var(--font-mono);
  font-size: .52rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange, #D35400);
  opacity: .6;
  margin-bottom: 2px;
}
.bento-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--orange);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  opacity: 0.7;
}
.bento-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 14px;
}
.bento-title em { color: var(--orange); font-style: italic; }
.bento-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.65;
}
.bento-coda {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-style: italic;
  color: var(--mid);
  max-width: 600px;
  line-height: 1.5;
  text-align: center;
  margin-inline: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION: ADN SONORE / CARTE (Leaflet)
   ═══════════════════════════════════════════════════════════════════════════ */
#nabai-resonances {
  background: var(--soot);
  padding: var(--sp-xl) 7vw;
}
.map-outer {
  position: relative;
  width: 100%;
  margin-top: 52px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(211, 84, 0, 0.15);
  background: #0a0808;
}
#nabai-map {
  width: 100%;
  height: 520px;
  border-radius: 24px;
}
/* Override Leaflet default styles to fit our dark theme */
.leaflet-container {
  background: #0a0808 !important;
  font-family: var(--font-body) !important;
}
.leaflet-control-zoom a {
  background: rgba(14, 14, 14, 0.9) !important;
  border-color: var(--border) !important;
  color: var(--mid) !important;
}
.leaflet-control-zoom a:hover {
  background: var(--soot-card) !important;
  color: var(--orange) !important;
}
.leaflet-control-attribution {
  background: rgba(14, 14, 14, 0.7) !important;
  color: var(--lo) !important;
  font-size: 0.5rem !important;
}
.nabai-popup .leaflet-popup-content-wrapper {
  background: rgba(8, 8, 8, 0.95) !important;
  border: 1px solid var(--border-hi) !important;
  border-radius: var(--r-md) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
  color: var(--hi) !important;
}
.nabai-popup .leaflet-popup-tip {
  background: rgba(8, 8, 8, 0.95) !important;
}
.nabai-popup .leaflet-popup-close-button {
  color: var(--mid) !important;
}
.map-popup-city {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--orange);
  margin-bottom: 3px;
}
.map-popup-zone {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 8px;
}
.map-popup-rhythms {
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--mid);
  line-height: 1.5;
}
.map-legend {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--lo);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 400;
}
.map-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange-glow);
  display: inline-block;
  margin-right: 6px;
  animation: dot-pulse 1.8s ease-in-out infinite;
  vertical-align: middle;
}
.map-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}
.map-stat {
  padding: 16px 20px;
  background: var(--soot-card);
  text-align: center;
}
.map-stat-n {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--orange);
}
.map-stat-l {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lo);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION: TRACKLIST
   ═══════════════════════════════════════════════════════════════════════════ */
#nabai-tracklist {
  background: var(--soot);
  padding: var(--sp-xl) 7vw;
}
.tl-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  margin-top: 48px;
}
.track-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.25s, border-color 0.3s;
  cursor: pointer;
}
.track-row:hover {
  padding-left: 10px;
  border-color: rgba(211, 84, 0, 0.2);
}
.track-row.active .t-num,
.track-row.active .t-name { color: var(--orange); }
.t-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--dim);
  width: 26px;
  flex-shrink: 0;
  transition: color 0.3s;
}
.t-main { flex: 1; overflow: hidden; }
.t-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  transition: color 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t-feat {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
  margin-top: 2px;
}
.t-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  flex-shrink: 0;
  transition: all 0.3s;
}
.track-row:hover .t-play,
.track-row.active .t-play { opacity: 1; }
.track-row.active .t-play { background: var(--orange); border-color: var(--orange); }
.t-play:hover { background: var(--orange); border-color: var(--orange); }
/* ── Bonus tracks divider ──────────────────────────────────────────── */
.tl-bonus-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
  color: var(--orange, #D35400);
}
.tl-bonus-divider::before,
.tl-bonus-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(211,84,0,.22);
}
.tl-bonus-divider span {
  font-family: var(--font-mono, monospace);
  font-size: .55rem;
  letter-spacing: .2em;
  opacity: .65;
  white-space: nowrap;
}
.track-row.is-bonus .t-num { opacity: .45; }
.track-row.is-bonus .t-name { font-size: .88em; }
.playing-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.pb {
  width: 2px;
  background: var(--orange);
  border-radius: 1px;
  transform-origin: bottom;
}
.pb.playing { animation: bar-dance 1.2s ease-in-out infinite; }
.pb:nth-child(1) { height: 4px;  animation-delay: 0s; }
.pb:nth-child(2) { height: 8px;  animation-delay: 0.15s; }
.pb:nth-child(3) { height: 6px;  animation-delay: 0.3s; }
.pb:nth-child(4) { height: 10px; animation-delay: 0.08s; }
.pb:nth-child(5) { height: 5px;  animation-delay: 0.22s; }

.active-card {
  margin-top: 32px;
  padding: 20px;
  border-radius: var(--r-md);
  background: rgba(211, 84, 0, 0.06);
  border: 1px solid rgba(211, 84, 0, 0.18);
  display: none;
}
.active-card.show { display: block; }
.ac-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
}
.ac-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}
.ac-cover {
  width: 100%;
  border-radius: var(--r-sm);
  margin-top: 16px;
  object-fit: cover;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION: ÉCOSYSTÈME
   ═══════════════════════════════════════════════════════════════════════════ */
#nabai-ecosystem {
  background: var(--soot-mid);
  padding: var(--sp-xl) 7vw;
}
.credits-grid {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 48px;
}
.c-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.c-block {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.c-block:hover { background: rgba(211, 84, 0, 0.04); }
.c-block:nth-child(odd) { border-right: 1px solid var(--border); }
.c-role {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
  font-weight: 600;
}
.c-names {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.55;
}
.voices-block {
  padding: 28px 32px;
  border-bottom: none;
}
.voices-names {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.6;
}
.voices-names .sep {
  color: var(--orange);
  margin: 0 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION: SEUIL (CTA final)
   ═══════════════════════════════════════════════════════════════════════════ */
#nabai-seuil {
  padding: var(--sp-2xl) 7vw;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--soot);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION: CONTACT
   ═══════════════════════════════════════════════════════════════════════════ */
#nabai-contact {
  background: var(--soot-mid);
  padding: var(--sp-xl) 7vw;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  margin-top: 56px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.3s;
  background: rgba(255, 255, 255, 0.02);
}
.contact-info-item:hover { border-color: rgba(211, 84, 0, 0.25); }
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--orange-faint);
  border: 1px solid rgba(211, 84, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}
.contact-label {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 4px;
  font-weight: 600;
}
.contact-value {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--hi);
}
.contact-form-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-field label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 600;
}
.form-field input,
.form-field textarea,
.form-field select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--hi);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: none;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(211, 84, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.1);
}
.form-field select option { background: #111; color: var(--hi); }
.form-submit {
  width: 100%;
  padding: 16px;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: white;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  transition: all 0.35s;
  margin-top: 8px;
}
.form-submit:hover {
  box-shadow: 0 0 48px rgba(211, 84, 0, 0.45);
  transform: translateY(-2px);
}
.form-success-msg {
  display: none;
  text-align: center;
  padding: 16px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--orange);
  font-size: 1rem;
  margin-top: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL — Participation
   ═══════════════════════════════════════════════════════════════════════════ */
#nabai-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
#nabai-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  padding: 48px 44px;
  width: 100%;
  max-width: 520px;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.4s cubic-bezier(0.34, 1.45, 0.64, 1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(211, 84, 0, 0.1);
}
#nabai-modal-overlay.open .modal-card { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.25s;
}
.modal-close:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: rotate(90deg);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 8px;
}
.modal-title em { color: var(--orange); font-style: italic; }
.modal-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--mid);
  margin-bottom: 32px;
  line-height: 1.6;
}
.form-success-state {
  text-align: center;
  padding: 32px 0;
  display: none;
}
.form-success-state.show { display: block; }
.success-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.success-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--orange);
  margin-bottom: 8px;
}
.success-sub {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--mid);
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
#nabai-footer {
  padding: 32px 7vw;
  border-top: 1px solid var(--border);
  background: var(--soot);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}
.footer-logo span { color: var(--orange); }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--orange); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--dim);
  letter-spacing: 0.1em;
}
.footer-copy strong { color: var(--orange); }

/* ═══════════════════════════════════════════════════════════════════════════
   BODY / WP CONTENT COMPATIBILITY
   ═══════════════════════════════════════════════════════════════════════════ */
.wp-site-blocks { padding: 0; }
.is-layout-flow > * { margin: 0; }
.admin-bar #nabai-nav { top: 32px; }
@media (max-width: 782px) {
  .admin-bar #nabai-nav { top: 46px; }
}
.wp-block-image img { border-radius: var(--r-md); }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  #nabai-hero { gap: 60px; }
  .tl-layout { gap: 40px; }
  .contact-grid { gap: 40px; }
}

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; }
  .tl-layout { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .c-row { grid-template-columns: 1fr; }
  .c-block:nth-child(odd) { border-right: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .map-stats { grid-template-columns: repeat(2, 1fr); }
  #nabai-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
  }
  .hero-visual { margin-top: 40px; }
  .hero-cover { width: min(360px, 80vw); }
  .hero-sub { margin: 0 auto 40px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  #nabai-player.expanded {
    width: calc(100vw - 32px);
    bottom: 16px;
  }
  .player-inner { padding: 10px 14px; gap: 10px; }
  .player-info { max-width: 160px; }
  .vis-full { display: none; }
  #nabai-player.collapsed {
    bottom: 16px;
    right: 16px;
    width: 56px;
  }
  #nabai-player.collapsed .player-inner { width: 56px; height: 56px; }
  .player-seek-row { display: none; }
  section { padding-left: 5vw; padding-right: 5vw; }
  .modal-card { padding: 32px 24px; }
  #nabai-hero { padding: 90px 5vw 60px; }
}

@media (max-width: 380px) {
  .player-info { display: none; }
  #nabai-player.expanded { width: calc(100vw - 24px); }
  .player-inner { gap: 8px; }
}
