/* ═══════════════════════════════════════════
   FOZILA — CSS partagé toutes pages
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --v: #7C3AED;
  --v-light: #A78BFA;
  --v-dim: rgba(124,58,237,0.15);
  --v-border: rgba(124,58,237,0.35);
  --bg: #080808;
  --card: #0f0f0f;
  --card2: #141414;
  --text: #F0F0F0;
  --muted: #666;
  --border: rgba(255,255,255,0.06);
  --green: #22c55e;
  --red: #ef4444;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 96px; /* nav 60px + announce-bar 36px */
}

/* TEXTURE */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: url('bg-pattern.jpg');
  background-size: 420px auto;
  background-repeat: repeat;
  opacity: 0.08;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* LUEURS */
body::before {
  content: '';
  position: fixed;
  width: 700px; height: 700px;
  top: -200px; left: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── ANNOUNCE BAR ── */
#announce-bar {
  position: fixed;
  top: 60px; left: 0; right: 0;
  z-index: 99;
  height: 36px;
  background: rgba(25, 8, 50, 0.97);
  border-bottom: 1px solid var(--v-border);
  overflow: hidden;
  display: flex; align-items: center;
}
.announce-track {
  display: flex; align-items: center;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  flex-shrink: 0;
}
.announce-track:hover { animation-play-state: paused; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.announce-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 44px;
  font-size: 12.5px; font-weight: 500;
  color: rgba(255,255,255,0.85);
}
.announce-item a { color: var(--v-light); font-weight: 700; text-decoration: none; }
.announce-item a:hover { text-decoration: underline; }
.dot { width: 4px; height: 4px; background: var(--v-light); border-radius: 50%; opacity: 0.6; flex-shrink: 0; }
.announce-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  width: 20px; height: 20px; border-radius: 50%; cursor: pointer;
  font-size: 11px; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 2;
}
.announce-close:hover { background: rgba(255,255,255,0.22); }

/* ── NAV ── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%; height: 60px;
  background: rgba(8,8,8,0.88);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800;
  color: var(--text); text-decoration: none; letter-spacing: -0.5px;
}
.logo em { color: var(--v-light); font-style: normal; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 14px; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { color: var(--v-light); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ── BOUTONS ── */
.btn-primary {
  background: var(--v); border: none; color: #fff;
  padding: 8px 20px; border-radius: 8px; cursor: pointer;
  font-size: 13px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: #6D28D9; transform: translateY(-1px); }
.btn-primary.lg { padding: 13px 28px; font-size: 15px; border-radius: 10px; }

.btn-ghost {
  background: none; border: 1px solid var(--border); color: var(--muted);
  padding: 8px 18px; border-radius: 8px; cursor: pointer;
  font-size: 13px; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-ghost:hover { border-color: var(--v-light); color: var(--text); }
.btn-ghost.lg { padding: 13px 28px; font-size: 15px; border-radius: 10px; }

.btn-outline {
  background: none; border: 1px solid var(--border); color: var(--text);
  padding: 8px 18px; border-radius: 8px; cursor: pointer;
  font-size: 13px; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-outline:hover { border-color: var(--v-light); color: var(--v-light); }

.btn-green {
  background: var(--green); border: none; color: #fff;
  padding: 8px 20px; border-radius: 8px; cursor: pointer;
  font-size: 13px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-green:hover { background: #16a34a; }

/* ── CARTE ALBUM ── */
.album-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: all 0.3s; cursor: pointer;
  text-decoration: none; color: inherit; display: block;
}
.album-card:hover {
  border-color: var(--v-border); transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(124,58,237,0.1);
}
.album-cover {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 52px; position: relative;
}
.album-tag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1); color: var(--text);
  padding: 3px 10px; border-radius: 100px; font-size: 11px;
}
.album-info { padding: 16px; }
.album-title { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.album-artist { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.album-footer { display: flex; align-items: center; justify-content: space-between; }
.album-price { font-size: 15px; font-weight: 700; color: var(--v-light); }
.btn-buy {
  background: var(--v-dim); border: 1px solid var(--v-border); color: var(--v-light);
  padding: 5px 14px; border-radius: 8px; font-size: 12px; font-weight: 500;
  font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-buy:hover { background: var(--v); color: #fff; border-color: var(--v); }

/* ── SECTION ── */
.section-wrap {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 60px 6%;
}
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  color: var(--v-light); text-transform: uppercase; margin-bottom: 10px;
}
.section-title {
  font-family: 'Syne', sans-serif; font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700; letter-spacing: -1px; margin-bottom: 8px;
}
.section-sub { color: var(--muted); font-size: 15px; margin-bottom: 40px; }

/* ── FORMULAIRES ── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px;
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--v);
}
.form-group textarea { resize: vertical; min-height: 80px; }

/* ── CARD GÉNÉRIQUE ── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
}

/* ── TOAST ── */
#toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--card2); border: 1px solid var(--border);
  color: var(--text); padding: 14px 20px; border-radius: 10px;
  font-size: 14px; transform: translateY(80px); opacity: 0;
  transition: all 0.3s; pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
#toast.show { transform: translateY(0); opacity: 1; }
#toast.success { border-color: var(--green); color: var(--green); }
#toast.error { border-color: var(--red); color: var(--red); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; width: 100%; max-width: 440px;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--card2); border: none; color: var(--muted);
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  body { padding-top: 96px; }
}

/* ══════════════════════════════════════
   FOZILA — Ajouts : Search, Hamburger, Mobile
══════════════════════════════════════ */

/* NAV SEARCH */
.nav-center { flex: 1; display: flex; justify-content: center; padding: 0 20px; }
.nav-search-wrap { position: relative; width: 100%; max-width: 340px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; pointer-events: none; }
.nav-search-input {
  width: 100%; padding: 8px 12px 8px 34px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 100px; color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 13px; outline: none; transition: all 0.2s;
}
.nav-search-input:focus { border-color: var(--v); background: rgba(124,58,237,0.08); }
.nav-search-input::placeholder { color: var(--muted); }

/* SEARCH DROPDOWN */
.search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 200;
  background: #111; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}
.sd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; text-decoration: none; color: var(--text);
  transition: background 0.15s; border-bottom: 1px solid var(--border);
}
.sd-item:last-child { border-bottom: none; }
.sd-item:hover { background: var(--v-dim); }
.sd-art { width: 36px; height: 36px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.sd-info { flex: 1; }
.sd-title { font-size: 13px; font-weight: 600; }
.sd-meta  { font-size: 11px; color: var(--muted); margin-top: 1px; }
.sd-price { font-size: 12px; font-weight: 700; color: var(--v-light); }
.sd-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* HAMBURGER */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 101;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu {
  display: none; position: fixed; top: 96px; left: 0; right: 0; z-index: 98;
  background: rgba(8,8,8,0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 6%; flex-direction: column; gap: 2px;
  transform: translateY(-20px); opacity: 0; transition: all 0.3s;
  pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-link {
  display: block; padding: 10px 0;
  color: var(--muted); text-decoration: none; font-size: 14px;
  border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.mobile-link:hover { color: var(--text); }

/* AUDIO PLAYER */
.audio-player {
  display: flex; align-items: center; gap: 10px;
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; margin-top: 12px;
}
.play-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--v); border: none; color: #fff;
  cursor: pointer; font-size: 12px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  transition: all 0.2s;
}
.play-btn:hover { background: #6D28D9; transform: scale(1.1); }
.player-bar { flex: 1; }
.player-progress {
  width: 100%; height: 4px; background: var(--border);
  border-radius: 100px; cursor: pointer; margin-bottom: 5px;
}
.player-fill { height: 100%; background: var(--v-light); border-radius: 100px; width: 0%; transition: width 0.1s; }
.player-time { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.player-label { font-size: 11px; color: var(--v-light); font-weight: 600; }

/* SINGLES CARD */
.single-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; transition: all 0.3s;
  cursor: pointer; text-decoration: none; color: inherit; display: block;
}
.single-card:hover { border-color: var(--v-border); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(124,58,237,0.1); }
.single-cover { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 44px; position: relative; }
.single-info { padding: 14px; }
.single-title { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.single-meta  { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.single-footer { display: flex; align-items: center; justify-content: space-between; }

/* FEATURED BADGE */
.featured-star {
  position: absolute; top: 10px; right: 10px;
  background: rgba(240,165,0,0.9); color: #000;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}

/* HISTORY TABLE */
.history-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.history-row:last-child { border-bottom: none; }
.history-icon { font-size: 22px; width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* RESPONSIVE UPDATES */
@media (max-width: 900px) {
  .nav-center  { display: none; }
  .nav-links   { display: none; }
  .nav-actions { display: none; }
  .hamburger   { display: flex; }
  .mobile-menu { display: flex; }
  #main-nav    { padding: 0 4%; }
  .logo        { font-size: 18px; }
}
@media (max-width: 600px) {
  .nav-center { display: none; }
}
