/* ═══════════════════════════════════════════════════════════════════════════
   NABAÏ CAFARUN — v2.1.0 patch
   Loaded LAST — overrides everything else.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────────────────
   1. NAV CONTRIBUER — pulse ring matches button radius (was 999px → 6px)
   ─────────────────────────────────────────────────────────────────────────── */
.nav-cta::after {
  border-radius: 6px !important;
}

/* ───────────────────────────────────────────────────────────────────────────
   2. TRACKLIST PLAYER — buy-album CTA at bottom
   ─────────────────────────────────────────────────────────────────────────── */
.tl-buy-wrap {
  display: flex;
  justify-content: center;
  margin: 56px auto 8px;
}
.tl-buy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 38px;
  border: none;
  border-radius: 60px;
  background: var(--orange, #D35400);
  color: #fff;
  font-family: var(--font-body, 'Syne', sans-serif);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s cubic-bezier(.22,.61,.36,1),
              box-shadow 0.35s ease;
  box-shadow: 0 8px 26px -8px rgba(211,84,0,.55);
}
.tl-buy-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
              rgba(255,255,255,0) 25%,
              rgba(255,255,255,.25) 50%,
              rgba(255,255,255,0) 75%);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(.22,.61,.36,1);
  z-index: 0;
}
.tl-buy-btn > * { position: relative; z-index: 1; }
.tl-buy-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 40px -8px rgba(211,84,0,.7),
    0 0 30px rgba(211,84,0,.35);
}
.tl-buy-btn:hover::before { transform: translateX(100%); }
.tl-buy-arrow { transition: transform 0.35s ease; }
.tl-buy-btn:hover .tl-buy-arrow { transform: translateX(4px); }

/* ───────────────────────────────────────────────────────────────────────────
   3. EYEBROW — harmonized across sections (font, size, letter-spacing)
   ─────────────────────────────────────────────────────────────────────────── */
.eyebrow,
.about-eyebrow {
  font-family: var(--font-mono, 'Space Mono', monospace) !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.32em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

/* ───────────────────────────────────────────────────────────────────────────
   4. SECTION DIVIDER ICONS — orange outlined stroke after load
      SVGs remain outlined (stroke only). Color transitions via currentColor.
      fill: none is enforced on all path/shape elements to prevent solid fill.
   ─────────────────────────────────────────────────────────────────────────── */

/* After page load: icon wrap color → orange (drives currentColor on SVG children) */
body.loaded .nabai-divider-icon-wrap {
  color: var(--orange, #D35400);
}

/* Force outlined only: no solid fill on any musician icon shapes */
.nabai-musician-icon path,
.nabai-musician-icon line,
.nabai-musician-icon rect,
.nabai-musician-icon ellipse {
  fill: none !important;
  stroke: currentColor;
}

/* Circles that serve as decorative discs (djembe, etc.) keep a light fill */
.nabai-musician-icon circle {
  fill: none !important;
  stroke: currentColor;
}

/* Override any inline fill attributes on these SVG elements */
.nabai-musician-icon [fill]:not([fill="none"]) {
  fill: none !important;
}

/* Hover glow — keep orange stroke, add drop-shadow */
.nabai-divider-icon-wrap:hover {
  color: var(--orange, #D35400) !important;
}

/* Light mode: divider icons also orange on load */
html[data-theme="light"] body.loaded .nabai-divider-icon-wrap {
  color: var(--orange, #D35400);
}

/* ───────────────────────────────────────────────────────────────────────────
   5. MOBILE NAVBAR — hamburger bars orange + flush drawer + centered CTA
   ─────────────────────────────────────────────────────────────────────────── */

/* Hamburger bars → orange */
.nav-hamburger span {
  background: var(--orange, #D35400) !important;
}

/* Active nav links → orange (desktop + mobile drawer) */
.nav-links a.active,
.nav-drawer a.active {
  color: var(--orange, #D35400) !important;
}

/* Mobile: center Contribuer button absolutely within the nav bar */
@media (max-width: 900px) {
  #nabai-nav {
    position: fixed; /* already fixed, but ensure relative context for absolute child */
  }
  .nav-cta {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    /* Reset any margin that might shift it */
    margin: 0 !important;
  }
}

/* Mobile drawer — flush directly below navbar, full width, smooth animation */
.nav-drawer {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  padding-top: calc(var(--nav-h, 64px) + 12px) !important;
  padding-bottom: 18px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  transform: translateY(-100%) !important;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.nav-drawer.open {
  transform: translateY(0) !important;
}

/* ───────────────────────────────────────────────────────────────────────────
   6. LIGHT MODE — Mobile nav drawer (was persistent dark)
   ─────────────────────────────────────────────────────────────────────────── */
html[data-theme="light"] .nav-drawer {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border-bottom: 1px solid rgba(14,14,14,0.08) !important;
  box-shadow: 0 8px 30px -10px rgba(14,14,14,0.12);
}
html[data-theme="light"] .nav-drawer a {
  color: #0e0e0e !important;
  border-bottom-color: rgba(14,14,14,0.06) !important;
}
html[data-theme="light"] .nav-drawer a:hover,
html[data-theme="light"] .nav-drawer a.active {
  color: var(--orange, #D35400) !important;
}

/* ───────────────────────────────────────────────────────────────────────────
   7. LIGHT MODE — Contact form select dropdown (was dark)
   ─────────────────────────────────────────────────────────────────────────── */
html[data-theme="light"] select,
html[data-theme="light"] #c-sujet {
  background-color: #FAF7F1 !important;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--orange, #D35400) 50%),
    linear-gradient(135deg, var(--orange, #D35400) 50%, transparent 50%) !important;
  background-position: calc(100% - 18px) center, calc(100% - 13px) center !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
  color: #0e0e0e !important;
  border: 1px solid rgba(14,14,14,0.10) !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
}
html[data-theme="light"] select option {
  background: #fff !important;
  color: #0e0e0e !important;
}
html[data-theme="light"] select:focus {
  border-color: var(--orange, #D35400) !important;
  box-shadow: 0 0 0 3px rgba(211,84,0,0.10) !important;
}

/* ───────────────────────────────────────────────────────────────────────────
   8. LIGHT MODE — Big NABAÏ logo (entrance screen) → orange
   ─────────────────────────────────────────────────────────────────────────── */
html[data-theme="light"] .entrance-title,
html[data-theme="light"] #nabai-entrance .entrance-title,
html[data-theme="light"] .entrance-logo,
html[data-theme="light"] .entrance-cover-name,
html[data-theme="light"] .hero-logo-big {
  color: var(--orange, #D35400) !important;
}
html[data-theme="light"] #nabai-entrance .entrance-title em {
  color: var(--orange, #D35400) !important;
}

/* ───────────────────────────────────────────────────────────────────────────
   9. ENTRANCE SCREEN — remove auto-dismiss countdown bar
   ─────────────────────────────────────────────────────────────────────────── */
.entrance-progress,
.entrance-progress-fill {
  display: none !important;
  animation: none !important;
}

/* ───────────────────────────────────────────────────────────────────────────
   10. MAP — Leaflet popup readable in light mode (was black text on white)
   ─────────────────────────────────────────────────────────────────────────── */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: rgba(14,14,14,0.93) !important;
  color: var(--hi, #EAE7DE) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 28px -8px rgba(0,0,0,0.55) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
.leaflet-popup-content {
  color: var(--hi, #EAE7DE) !important;
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
}
/* In light mode: white popup with dark text */
html[data-theme="light"] .leaflet-popup-content-wrapper,
html[data-theme="light"] .leaflet-popup-tip {
  background: rgba(255,255,255,0.97) !important;
  color: #0e0e0e !important;
  border: 1px solid rgba(14,14,14,0.08) !important;
  box-shadow: 0 8px 28px -8px rgba(14,14,14,0.18) !important;
}
html[data-theme="light"] .leaflet-popup-content {
  color: #0e0e0e !important;
}
/* Map pole popup title in orange */
.nabai-popup-city,
.nabai-map-popup-title {
  color: var(--orange, #D35400) !important;
  font-weight: 600 !important;
}
html[data-theme="light"] .nabai-popup-zone,
html[data-theme="light"] .nabai-map-popup-zone {
  color: rgba(14,14,14,0.65) !important;
}

/* ───────────────────────────────────────────────────────────────────────────
   11. SCROLL REVEAL — refined timings for cinematic feel
   ─────────────────────────────────────────────────────────────────────────── */
.reveal {
  transition:
    opacity 1.0s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.0s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.reveal-d1 { transition-delay: 0.12s !important; }
.reveal-d2 { transition-delay: 0.24s !important; }
.reveal-d3 { transition-delay: 0.36s !important; }
.reveal-d4 { transition-delay: 0.48s !important; }

/* Section enter — soft scale + opacity for cards */
.bento-card.reveal,
.event-row.reveal,
.track-row.reveal,
.c-block.reveal {
  transform: translateY(28px) scale(0.985);
}
.bento-card.reveal.visible,
.event-row.reveal.visible,
.track-row.reveal.visible,
.c-block.reveal.visible {
  transform: translateY(0) scale(1);
}

/* Reduce motion fallback */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.visible,
  .bento-card.reveal,
  .bento-card.reveal.visible {
    transition: opacity 0.3s ease !important;
    transform: none !important;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   12. STICKY LANGUAGE TOGGLE (bottom-right)
       border-radius matches navbar pill style (--r-pill = 60px)
   ─────────────────────────────────────────────────────────────────────────── */
.nabai-lang-sticky {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 220;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border-radius: var(--r-pill, 60px);
  background: rgba(14,14,14,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 28px -8px rgba(0,0,0,0.5);
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
body.loaded .nabai-lang-sticky {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nabai-lang-sticky button {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.55);
  padding: 7px 14px;
  border-radius: var(--r-pill, 60px);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: color 0.3s, background 0.3s;
}
.nabai-lang-sticky button:hover { color: #fff; }
.nabai-lang-sticky button.active {
  background: var(--orange, #D35400);
  color: #fff;
}
html[data-theme="light"] .nabai-lang-sticky {
  background: rgba(255,255,255,0.92);
  border-color: rgba(14,14,14,0.10);
  box-shadow: 0 8px 28px -8px rgba(14,14,14,0.18);
}
html[data-theme="light"] .nabai-lang-sticky button { color: rgba(14,14,14,0.55); }
html[data-theme="light"] .nabai-lang-sticky button:hover { color: #0e0e0e; }
html[data-theme="light"] .nabai-lang-sticky button.active {
  background: var(--orange, #D35400);
  color: #fff;
}

@media (max-width: 720px) {
  .nabai-lang-sticky {
    bottom: 14px;
    right: 14px;
    font-size: 9px;
  }
  .nabai-lang-sticky button { padding: 6px 11px; }
}

/* ───────────────────────────────────────────────────────────────────────────
   13. ENTRANCE SCREEN — language toggle, border-radius matches nav pill
   ─────────────────────────────────────────────────────────────────────────── */
.nabai-entrance-lang {
  display: inline-flex;
  gap: 0;
  padding: 4px;
  margin-top: 28px;
  border-radius: var(--r-pill, 60px);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nabai-entrance-lang button {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.55);
  padding: 8px 18px;
  border-radius: var(--r-pill, 60px);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: color 0.3s, background 0.3s;
}
.nabai-entrance-lang button.active {
  background: var(--orange, #D35400);
  color: #fff;
}
html[data-theme="light"] .nabai-entrance-lang {
  background: rgba(14,14,14,0.04);
  border-color: rgba(14,14,14,0.10);
}
html[data-theme="light"] .nabai-entrance-lang button { color: rgba(14,14,14,0.55); }
html[data-theme="light"] .nabai-entrance-lang button.active {
  background: var(--orange, #D35400);
  color: #fff;
}

/* ───────────────────────────────────────────────────────────────────────────
   14. TRACKLIST — left spacing on track rows (were flush to edge)
   ─────────────────────────────────────────────────────────────────────────── */
#tl-items {
  padding-left: 16px !important;
  padding-right: 8px !important;
}
@media (min-width: 600px) {
  #tl-items {
    padding-left: 24px !important;
    padding-right: 16px !important;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   15. VOICES & SOULS — justify names
   ─────────────────────────────────────────────────────────────────────────── */
.voices-names {
  text-align: justify !important;
  text-align-last: left !important;
  hyphens: auto;
}

/* ───────────────────────────────────────────────────────────────────────────
   16. GLOBAL BUTTON HOVER — uniform lift + glow applied to all buttons
       Two visual styles preserved:
         A) Filled orange (btn-contribute, tl-buy-btn, form-submit, nav-cta)
            → deeper orange glow on hover
         B) Glass/outlined (btn-glass)
            → orange-tinted frost glow on hover
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Style A: filled orange buttons ───────────────────────────────────────── */
.btn-contribute,
.nav-cta,
.form-submit,
.tl-buy-btn,
.entrance-cta,
.event-btn,
.about-ctas .btn-glass[data-contrib-open] {
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    background 0.3s ease !important;
}
.btn-contribute:hover,
.nav-cta:hover,
.form-submit:hover,
.entrance-cta:hover,
.event-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow:
    0 14px 40px -8px rgba(211,84,0,.65),
    0 0 28px rgba(211,84,0,.30) !important;
}
.form-submit:hover {
  background: #b84600 !important; /* slightly darker orange on hover */
}

/* ── Style B: glass/outlined buttons ─────────────────────────────────────── */
.btn-glass {
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.3s ease,
    background 0.3s ease !important;
}
.btn-glass:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(211,84,0,.55) !important;
  background: rgba(211,84,0,.08) !important;
  box-shadow:
    0 14px 40px -8px rgba(0,0,0,.35),
    0 0 24px rgba(211,84,0,.18) !important;
}

/* Light mode glass button hover */
html[data-theme="light"] .btn-glass:hover {
  background: rgba(211,84,0,.07) !important;
  border-color: rgba(211,84,0,.45) !important;
  box-shadow:
    0 10px 30px -8px rgba(14,14,14,.15),
    0 0 20px rgba(211,84,0,.15) !important;
}

/* ── Shimmer sweep on all filled buttons (same as tl-buy-btn) ──────────────── */
.btn-contribute,
.nav-cta,
.form-submit,
.entrance-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-contribute::before,
.nav-cta::before,
.form-submit::before,
.entrance-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    rgba(255,255,255,0) 25%,
    rgba(255,255,255,.22) 50%,
    rgba(255,255,255,0) 75%);
  transform: translateX(-100%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  pointer-events: none;
}
.btn-contribute:hover::before,
.nav-cta:hover::before,
.form-submit:hover::before,
.entrance-cta:hover::before {
  transform: translateX(100%);
}
/* Keep text/icons above shimmer */
.btn-contribute > *,
.nav-cta > *,
.form-submit > *,
.entrance-cta > * {
  position: relative;
  z-index: 1;
}

/* ───────────────────────────────────────────────────────────────────────────
   17. SECTION TRANSITION — smoother section-to-section feel
   ─────────────────────────────────────────────────────────────────────────── */
section {
  transition: background 0.6s ease;
}
.sec-title {
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
              transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.05s !important;
}
.reveal.visible .sec-title em {
  animation: title-em-pop 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
@keyframes title-em-pop {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  60%  { opacity: 1; transform: translateY(-2px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ───────────────────────────────────────────────────────────────────────────
   18. LIGHT MODE — glass button override for visibility
   ─────────────────────────────────────────────────────────────────────────── */
html[data-theme="light"] .btn-contribute {
  background: var(--orange, #D35400) !important;
  color: #fff !important;
}
html[data-theme="light"] .btn-contribute:hover {
  box-shadow:
    0 14px 40px -8px rgba(211,84,0,.55),
    0 0 24px rgba(211,84,0,.25) !important;
}
