/* ================================================================
   PEAKLY — Feuille de styles commune · css/style.css
   Design système : gold #E5C158 / fond nuit #0A0D14
   ================================================================ */

/* ----------------------------------------------------------------
   1. VARIABLES — superset de toutes les pages
   ---------------------------------------------------------------- */
:root {
  /* Couleur signature */
  --or: #E5C158;
  --or-h: #C9A53F;
  --or-dim: rgba(229,193,88,.1);
  --or-glow: rgba(229,193,88,.25);
  --or-glow2: rgba(229,193,88,.5);
  --or-soft: rgba(229,193,88,.12);
  --or-peakly: #E5C158;
  --or-peakly-hover: #C9A53F;

  /* Fonds nuit */
  --nuit: #050507;
  --nuit2: #0A0D14;
  --nuit3: #111622;
  --nuit4: #1A2133;
  --nuit5: #202840;
  --bleu-nuit: #050507;
  --bleu-nuit-clair: #111622;
  --bleu-nuit-hover: #1A2133;

  /* Bordures & verre */
  --bordure: rgba(255,255,255,.07);
  --bordure2: rgba(255,255,255,.12);
  --glass-border: rgba(255,255,255,.08);
  --glass: rgba(255,255,255,.04);
  --glass2: rgba(255,255,255,.07);
  --b1: rgba(255,255,255,.07);
  --b2: rgba(255,255,255,.13);
  --b3: rgba(255,255,255,.18);

  /* Textes */
  --txt: #F1F3F9;
  --txt2: #94A3B8;
  --txt3: rgba(241,243,249,.35);
  --texte-principal: #F1F3F9;
  --texte-secondaire: #94A3B8;
  --texte-fonce: #0A0D14;

  /* Couleurs sémantiques */
  --corail: #FF6B5E;
  --vert: #4ade80;
  --bleu: #60a5fa;
  --violet: #a78bfa;
  --rose: #f472b6;
  --orange: #fb923c;

  /* Rayons */
  --r: 14px;
  --r-sm: 8px;
  --r-lg: 20px;
  --r-xl: 28px;
  --rayon-btn: 10px;

  /* Transitions */
  --T: .28s cubic-bezier(.4,0,.2,1);
  --transition: .3s cubic-bezier(.4,0,.2,1);

  /* Ombres */
  --shadow: 0 8px 32px rgba(0,0,0,.5);
  --shadow-gold: 0 0 40px rgba(229,193,88,.15);
  --shadow-card: 0 4px 24px rgba(0,0,0,.4);
}

/* ----------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased }
body {
  font-family: 'Inter', sans-serif;
  background: var(--nuit2);
  color: var(--txt2);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 58px;
}
a { text-decoration: none; color: inherit }
img { display: block; max-width: 100% }
button { font-family: inherit; cursor: pointer; border: none; background: none }
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--txt);
  line-height: 1.15;
  letter-spacing: -.02em;
}

/* ----------------------------------------------------------------
   3. EN-TETE FIXE — UIPro premium
   ---------------------------------------------------------------- */
header.header-app {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 58px;
  background: rgba(5,5,7,.75);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center;
  transition: transform .35s cubic-bezier(.4,0,.2,1), background .3s ease, border-color .3s ease, box-shadow .3s ease;
  /* Glow réactif à la souris */
  --mx: 50%;
}
header.header-app::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle 300px at var(--mx, 50%) 50%, rgba(229,193,88,.06), transparent 80%);
  transition: opacity .3s;
  z-index: 0;
}
header.header-app.scrolled {
  background: rgba(5,5,7,.95);
  border-bottom-color: rgba(229,193,88,.1);
  box-shadow: 0 1px 40px rgba(0,0,0,.6), 0 0 0 0.5px rgba(229,193,88,.08);
}
header.header-app.hidden {
  transform: translateY(-100%);
}

/* Ligne de glow dorée en bas du header */
.header-glow-line {
  position: absolute; bottom: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229,193,88,.3), transparent);
  opacity: 0;
  transition: opacity .4s;
}
header.header-app.scrolled .header-glow-line { opacity: 1; }

.header-interieur {
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 0 20px; display: flex; align-items: center; gap: 16px;
  position: relative; z-index: 1;
}

/* Logo */
.header-logo {
  flex-shrink: 0; display: flex; align-items: center;
  position: relative;
  transition: opacity .2s;
}
.header-logo:hover { opacity: .85 }
.header-logo img { height: 28px; width: auto; display: block }
.logo-pulse-ring {
  display: none; /* Activé uniquement si besoin */
}

/* Barre de recherche */
.barre-recherche {
  flex: 1; max-width: 420px;
  position: relative; display: flex; align-items: center;
}
.search-icon-wrap {
  position: absolute; left: 12px; z-index: 2;
  color: rgba(148,163,184,.5);
  display: flex; align-items: center;
  transition: color .2s;
}
.barre-recherche.focused .search-icon-wrap { color: var(--or) }
.barre-recherche input {
  width: 100%; padding: 9px 60px 9px 36px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  font-size: .84rem; color: var(--txt);
  font-family: 'Inter', sans-serif;
  transition: border-color .2s, background .2s, box-shadow .2s;
  position: relative; z-index: 1;
}
.barre-recherche input:focus {
  outline: none;
  border-color: rgba(229,193,88,.4);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 3px rgba(229,193,88,.08), 0 0 20px rgba(229,193,88,.08);
}
.barre-recherche input::placeholder { color: rgba(148,163,184,.4) }
.search-glow {
  position: absolute; inset: 0; border-radius: 999px; pointer-events: none; z-index: 0;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(229,193,88,.12), transparent 70%);
  transition: opacity .3s;
}
.barre-recherche.focused .search-glow { opacity: 1 }
.search-kbd {
  position: absolute; right: 12px; z-index: 2;
  font-size: .62rem; color: rgba(148,163,184,.35);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 4px; padding: 2px 6px;
  font-family: 'Inter', sans-serif; letter-spacing: 0;
  opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.barre-recherche.focused .search-kbd { opacity: 1 }

/* Nav icônes */
.nav-icones { margin-left: auto; display: flex; align-items: center; gap: 2px }
.nav-icone {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 10px; border-radius: 8px;
  color: rgba(148,163,184,.7); font-size: .63rem; font-weight: 600;
  transition: color .2s, background .2s;
  position: relative; white-space: nowrap;
  cursor: pointer; font-family: 'Inter', sans-serif; text-decoration: none;
}
.nav-icone-inner {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 28px;
  border-radius: 7px;
  transition: background .2s, box-shadow .2s;
}
.nav-icone:hover { color: #fff }
.nav-icone:hover .nav-icone-inner {
  background: rgba(255,255,255,.07);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.nav-icone.actif { color: var(--or) }
.nav-icone.actif .nav-icone-inner {
  background: rgba(229,193,88,.1);
  box-shadow: 0 0 12px rgba(229,193,88,.15);
}

/* Indicateur actif animé */
.nav-indicator {
  position: absolute; bottom: -1px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
  border-radius: 2px;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.nav-icone.actif .nav-indicator { transform: translateX(-50%) scaleX(1) }

/* Badge notification */
.notif-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; border-radius: 999px;
  background: #EF4444; color: #fff;
  font-size: .58rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(5,5,7,.9);
  padding: 0 3px;
}
.nav-badge-anim { animation: badge-pop .4s cubic-bezier(.34,1.56,.64,1) both }

/* Avatar */
.avatar-wrapper {
  position: relative; cursor: pointer; margin-left: 4px;
  outline: none;
}
.avatar-header {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #E5C158 0%, #C9A53F 60%, #A07A2C 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: .72rem;
  color: #0A0D14; flex-shrink: 0;
  position: relative; z-index: 1;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.avatar-ring {
  position: absolute; inset: -3px; border-radius: 50%;
  border: 1.5px solid rgba(229,193,88,.4);
  animation: avatar-ring-pulse 3s ease infinite;
}
.avatar-wrapper:hover .avatar-header {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(229,193,88,.25), 0 4px 16px rgba(229,193,88,.3);
}

/* Menu avatar dropdown — slide+fade */
.menu-avatar {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 300;
  min-width: 220px;
  background: rgba(14,18,28,.95);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.8), 0 0 0 0.5px rgba(255,255,255,.06);
  padding: 6px;
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s cubic-bezier(.34,1.56,.64,1);
}
.menu-avatar.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header du menu avec infos user */
.menu-avatar-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 12px;
}
.menu-avatar-user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #E5C158, #C9A53F);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: .8rem; color: #0A0D14;
  flex-shrink: 0;
}
.menu-avatar-name { font-size: .85rem; font-weight: 700; color: #fff; }
.menu-avatar-email { font-size: .72rem; color: rgba(148,163,184,.6); margin-top: 1px; }

.menu-avatar-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 10px;
  font-size: .82rem; color: rgba(148,163,184,.8);
  cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
  position: relative;
}
.menu-avatar-item:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
  transform: translateX(2px);
}
.menu-avatar-item svg { flex-shrink: 0; opacity: .6 }
.menu-avatar-item:hover svg { opacity: 1 }
.menu-avatar-item-danger { color: rgba(239,68,68,.7) }
.menu-avatar-item-danger:hover { background: rgba(239,68,68,.08); color: #EF4444 }

.menu-badge-pro {
  margin-left: auto;
  font-size: .6rem; font-weight: 800;
  background: rgba(229,193,88,.15); color: var(--or);
  border: 1px solid rgba(229,193,88,.25);
  padding: 2px 7px; border-radius: 999px; letter-spacing: .04em;
}
.menu-avatar-sep { height: 1px; background: rgba(255,255,255,.07); margin: 4px 0 }

@media (max-width: 600px) {
  .nav-icone span { display: none }
  .nav-icone { padding: 4px 6px }
  .nav-icone-inner { width: 28px; height: 26px }
  .barre-recherche { max-width: 140px }
  .search-kbd { display: none }
}

/* ----------------------------------------------------------------
   4. BOUTONS — UIPro level
   ---------------------------------------------------------------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: .95rem;
  padding: 13px 28px; border-radius: 12px;
  background: linear-gradient(135deg, #E5C158 0%, #D4A94A 60%, #C9A53F 100%);
  color: #0A0D14;
  border: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
  box-shadow: 0 2px 12px rgba(229,193,88,.2), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.2) 0%, transparent 60%);
  pointer-events: none;
}
.btn-primary::after {
  content: ''; position: absolute;
  top: 50%; left: 50%; width: 0; height: 0;
  background: rgba(255,255,255,.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .4s ease, height .4s ease, opacity .4s ease;
  opacity: 0;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 32px rgba(229,193,88,.45), 0 0 0 1px rgba(229,193,88,.3);
}
.btn-primary:active {
  transform: translateY(0) scale(.99);
  box-shadow: 0 2px 8px rgba(229,193,88,.2);
}
.btn-primary:active::after {
  width: 200px; height: 200px; opacity: 0;
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: .95rem;
  padding: 12px 28px; border-radius: 12px;
  background: rgba(255,255,255,.04); color: var(--txt);
  border: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

/* ----------------------------------------------------------------
   5. CARD — UIPro glassmorphism premium
   ---------------------------------------------------------------- */
.card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r); padding: 20px;
  backdrop-filter: blur(16px) saturate(150%);
  transition: border-color .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: rgba(255,255,255,.15); transform: translateY(-3px) scale(1.005); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.card:hover::before { opacity: 1 }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { display: flex; align-items: center; gap: 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--txt2); }
.card-title svg { color: var(--or) }
.card-meta { font-size: .72rem; color: var(--txt3) }
.card-body { display: flex; flex-direction: column; gap: 12px }

/* ----------------------------------------------------------------
   6. MOUSE GLOW
   ---------------------------------------------------------------- */
.mouse-glow {
  position: fixed; pointer-events: none; z-index: 0;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229,193,88,.055) 0%, transparent 70%);
  transform: translate(-50%, -50%); transition: opacity .3s;
}

/* ----------------------------------------------------------------
   7. SCROLL REVEAL + KEYFRAMES UIPro
   ---------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none }
.reveal-left  { opacity: 0; transform: translateX(-28px); transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
.reveal-right { opacity: 0; transform: translateX(28px);  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1); }
.reveal-left.visible, .reveal-right.visible, .reveal-scale.visible { opacity: 1; transform: none }
.reveal-stagger > *:nth-child(1) { transition-delay: .05s }
.reveal-stagger > *:nth-child(2) { transition-delay: .12s }
.reveal-stagger > *:nth-child(3) { transition-delay: .19s }
.reveal-stagger > *:nth-child(4) { transition-delay: .26s }
.reveal-stagger > *:nth-child(5) { transition-delay: .33s }
.reveal-stagger > *:nth-child(6) { transition-delay: .40s }

@keyframes glow-pulse { 0%, 100% { box-shadow: none } 50% { box-shadow: 0 0 20px 4px rgba(229,193,88,.2), 0 0 60px 12px rgba(229,193,88,.08) } }
@keyframes glow-breathe { 0%, 100% { opacity: .4; transform: scale(1) } 50% { opacity: .9; transform: scale(1.04) } }
@keyframes spin-ring { to { transform: rotate(360deg) } }
@keyframes spin-ring-reverse { to { transform: rotate(-360deg) } }
@keyframes pulse-ai { 0%, 100% { opacity: .5; transform: scale(1) } 50% { opacity: 1; transform: scale(1.02) } }
@keyframes float-particle { 0%, 100% { transform: translateY(0) rotate(0deg) } 33% { transform: translateY(-10px) rotate(120deg) } 66% { transform: translateY(-6px) rotate(240deg) } }
@keyframes float-slow { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96) } to { opacity: 1; transform: translateY(0) scale(1) } }
@keyframes toastOut { from { opacity: 1; transform: none } to { opacity: 0; transform: translateY(-8px) scale(.95) } }
@keyframes badge-pop { 0% { transform: scale(0) } 60% { transform: scale(1.3) } 100% { transform: scale(1) } }
@keyframes avatar-ring-pulse { 0%, 100% { opacity: .4; transform: scale(1) } 50% { opacity: .9; transform: scale(1.12) } }
@keyframes shimmer-slide { 0% { transform: translateX(-100%) } 100% { transform: translateX(200%) } }
@keyframes gradient-x { 0%, 100% { background-position: 0% 50% } 50% { background-position: 100% 50% } }
@keyframes slide-in-up { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: translateY(0) } }
@keyframes slide-in-down { from { opacity: 0; transform: translateY(-20px) } to { opacity: 1; transform: translateY(0) } }
@keyframes scale-in { from { opacity: 0; transform: scale(.9) } to { opacity: 1; transform: scale(1) } }
@keyframes fade-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes orb-drift { from { transform: translate(0,0) } to { transform: translate(30px,20px) } }
@keyframes orb-appear { to { opacity: 1 } }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0 } }
@keyframes page-enter { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: translateY(0) } }
@keyframes skeleton-wave { 0% { background-position: 100% 0 } 100% { background-position: -100% 0 } }

.anim-fade-in    { animation: fade-in .5s ease both }
.anim-slide-up   { animation: slide-in-up .5s cubic-bezier(.22,1,.36,1) both }
.anim-slide-down { animation: slide-in-down .5s cubic-bezier(.22,1,.36,1) both }
.anim-scale-in   { animation: scale-in .4s cubic-bezier(.34,1.56,.64,1) both }
.anim-glow-pulse { animation: glow-pulse 3s ease infinite }
.anim-float      { animation: float-slow 4s ease-in-out infinite }
.anim-shimmer    { position: relative; overflow: hidden }
.anim-shimmer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); animation: shimmer-slide 2.5s ease-in-out infinite; }
.delay-1 { animation-delay: .1s } .delay-2 { animation-delay: .2s } .delay-3 { animation-delay: .3s }
.delay-4 { animation-delay: .4s } .delay-5 { animation-delay: .5s } .delay-6 { animation-delay: .6s }
.delay-7 { animation-delay: .7s } .delay-8 { animation-delay: .8s }
.page-content { animation: page-enter .45s cubic-bezier(.22,1,.36,1) both }

/* ----------------------------------------------------------------
   8. UTILITAIRES PREMIUM
   ---------------------------------------------------------------- */
.card-tilt { transform-style: preserve-3d; will-change: transform }
.up { color: #4ade80 !important } .down { color: var(--corail) !important }
.gold-glow { box-shadow: 0 0 30px rgba(229,193,88,.2), 0 0 60px rgba(229,193,88,.08) }
.gold-text-glow { text-shadow: 0 0 20px rgba(229,193,88,.5), 0 0 40px rgba(229,193,88,.2) }
.gold-border-glow { border-color: rgba(229,193,88,.4) !important; box-shadow: 0 0 16px rgba(229,193,88,.15) }
.gradient-text-gold {
  background: linear-gradient(135deg, #F0D060 0%, #E5C158 40%, #C9A53F 80%, #A07A2C 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% 200%; animation: gradient-x 4s ease infinite;
}
.separator-glow { height: 1px; background: linear-gradient(90deg, transparent, rgba(229,193,88,.3), transparent); margin: 24px 0; }

/* Toast */
.toast-container { position: fixed; bottom: 28px; right: 28px; z-index: 800; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; z-index: 700; background: rgba(0,0,0,.65); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.modal-overlay.open { opacity: 1; pointer-events: all }
.modal-box { background: rgba(14,18,28,.98); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 32px; width: min(440px, 92vw); box-shadow: 0 32px 100px rgba(0,0,0,.8); position: relative; transform: scale(.96) translateY(8px); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.modal-overlay.open .modal-box { transform: scale(1) translateY(0) }
.modal-titre { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--txt); margin-bottom: 6px; }
.modal-sous-titre { font-size: .83rem; color: var(--txt2); margin-bottom: 24px; line-height: 1.55 }
.modal-champ { margin-bottom: 16px }
.modal-champ label { display: block; font-size: .72rem; font-weight: 700; color: var(--txt2); margin-bottom: 6px; letter-spacing: .06em; text-transform: uppercase; }
.modal-champ input, .modal-champ textarea { width: 100%; padding: 12px 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 10px; color: var(--txt); font-family: 'Inter', sans-serif; font-size: .88rem; outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.modal-champ input:focus, .modal-champ textarea:focus { border-color: rgba(229,193,88,.4); box-shadow: 0 0 0 3px rgba(229,193,88,.08); }
.modal-champ input::placeholder, .modal-champ textarea::placeholder { color: rgba(148,163,184,.35); }
.modal-fermer { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); color: var(--txt2); display: flex; align-items: center; justify-content: center; cursor: pointer; background: rgba(255,255,255,.04); transition: all .2s cubic-bezier(.34,1.56,.64,1); }
.modal-fermer:hover { background: rgba(255,255,255,.1); color: var(--txt); transform: scale(1.1) rotate(90deg) }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, var(--nuit4) 25%, rgba(255,255,255,.04) 50%, var(--nuit4) 75%); background-size: 300% 100%; animation: skeleton-wave 1.8s ease infinite; border-radius: var(--r-sm); }

/* Badges */
.badge-type { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.badge-artiste { background: rgba(229,193,88,.1); color: var(--or); border: 1px solid rgba(229,193,88,.2) }
.badge-label   { background: rgba(96,165,250,.1); color: var(--bleu); border: 1px solid rgba(96,165,250,.2) }
.badge-manager { background: rgba(167,139,250,.1); color: var(--violet); border: 1px solid rgba(167,139,250,.2) }
.badge-verifie { background: rgba(74,222,128,.1); color: var(--vert); border: 1px solid rgba(74,222,128,.2) }

/* ================================================================
   PEAKLY — Couche Premium UX/UI — Ajouts direction artistique
   Grain · Orbes · Cards Pro · Typo · États · Micro-animations
   ================================================================ */

/* ── Grain texture sur tout le site ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* ── Fond ambiant animé (orbes de couleur) ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% 15%, rgba(229,193,88,.045) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 85% 85%, rgba(167,139,250,.035) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(74,222,128,.02) 0%, transparent 70%);
  animation: ambient-drift 25s ease-in-out infinite alternate;
}
@keyframes ambient-drift {
  0%   { transform: scale(1) translate(0,0) }
  33%  { transform: scale(1.03) translate(8px,-4px) }
  66%  { transform: scale(1.02) translate(-6px,8px) }
  100% { transform: scale(1.04) translate(4px,-2px) }
}

/* ── Scrollbar premium ── */
::-webkit-scrollbar { width: 6px; height: 6px }
::-webkit-scrollbar-track { background: rgba(255,255,255,.02) }
::-webkit-scrollbar-thumb { background: rgba(229,193,88,.25); border-radius: 3px }
::-webkit-scrollbar-thumb:hover { background: rgba(229,193,88,.45) }

/* ── Sélection texte ── */
::selection { background: rgba(229,193,88,.2); color: #fff }

/* ── Focus visible premium ── */
:focus-visible { outline: 2px solid rgba(229,193,88,.6); outline-offset: 3px; border-radius: 4px }

/* ── Typographie renforcée ── */
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; letter-spacing: -.04em }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.03em }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -.02em }

/* ── Variables nouvelles ── */
:root {
  --or-vivid: #F0D060;
  --or-pale: rgba(229,193,88,.06);
  --purple: #a78bfa;
  --purple-dim: rgba(167,139,250,.08);
  --green-dim: rgba(74,222,128,.08);
  --card-bg: rgba(255,255,255,.028);
  --card-bg-hover: rgba(255,255,255,.05);
  --surface: rgba(255,255,255,.04);
  --surface-hover: rgba(255,255,255,.07);
  --glow-or: 0 0 0 1px rgba(229,193,88,.15), 0 8px 32px rgba(229,193,88,.15), 0 0 60px rgba(229,193,88,.06);
  --glow-purple: 0 0 0 1px rgba(167,139,250,.15), 0 8px 32px rgba(167,139,250,.12);
  --r-2xl: 36px;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ── Card premium v2 ── */
.card-premium {
  background: linear-gradient(145deg, rgba(26,33,51,.6), rgba(10,13,20,.8));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px) saturate(160%);
  position: relative; overflow: hidden;
  transition: border-color .3s, transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s;
}
.card-premium::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  opacity: 0; transition: opacity .3s;
}
.card-premium::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(229,193,88,.07) 0%, transparent 60%);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.card-premium:hover {
  border-color: rgba(229,193,88,.2);
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(229,193,88,.1);
}
.card-premium:hover::before, .card-premium:hover::after { opacity: 1 }

/* ── Shimmer line sur cards hover ── */
.card-shimmer {
  position: relative; overflow: hidden;
}
.card-shimmer::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
  transition: left .5s ease;
  pointer-events: none;
}
.card-shimmer:hover::after { left: 140% }

/* ── Bouton primary v2 ── */
.btn-primary-v2 {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 800; font-size: .92rem;
  padding: 13px 28px; border-radius: 12px;
  background: linear-gradient(135deg, #F0D060 0%, #E5C158 45%, #C9A53F 100%);
  color: #0A0D14;
  border: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s, filter .2s;
  box-shadow: 0 0 0 1px rgba(229,193,88,.3), 0 4px 16px rgba(229,193,88,.25), inset 0 1px 0 rgba(255,255,255,.3);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.btn-primary-v2::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, transparent 55%);
  pointer-events: none;
}
.btn-primary-v2:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(229,193,88,.5), 0 8px 28px rgba(229,193,88,.4), inset 0 1px 0 rgba(255,255,255,.35);
  filter: brightness(1.05);
}
.btn-primary-v2:active { transform: translateY(0) scale(.98) }

/* ── Bouton ghost gold ── */
.btn-ghost-gold {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  padding: 12px 24px; border-radius: 12px;
  background: rgba(229,193,88,.06);
  border: 1px solid rgba(229,193,88,.2);
  color: var(--or);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.btn-ghost-gold:hover {
  background: rgba(229,193,88,.12);
  border-color: rgba(229,193,88,.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229,193,88,.15);
}

/* ── Badge premium ── */
.badge-premium {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(135deg, rgba(229,193,88,.15), rgba(229,193,88,.08));
  border: 1px solid rgba(229,193,88,.25);
  color: var(--or);
  font-family: var(--font-display);
}
.badge-new {
  background: linear-gradient(135deg, rgba(74,222,128,.15), rgba(74,222,128,.08));
  border-color: rgba(74,222,128,.25); color: var(--vert);
}
.badge-hot {
  background: linear-gradient(135deg, rgba(251,146,60,.15), rgba(251,146,60,.08));
  border-color: rgba(251,146,60,.25); color: var(--orange);
}

/* ── Stat card premium ── */
.stat-card {
  background: linear-gradient(145deg, rgba(26,33,51,.5), rgba(10,13,20,.7));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r);
  padding: 20px 22px;
  position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(229,193,88,.08) 0%, transparent 70%);
  pointer-events: none;
}
.stat-card:hover { border-color: rgba(255,255,255,.14); transform: translateY(-2px) }
.stat-card-value {
  font-family: var(--font-display); font-weight: 900;
  font-size: 2rem; color: var(--txt); line-height: 1; margin-bottom: 4px;
  background: linear-gradient(135deg, #fff 0%, rgba(241,243,249,.7) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-card-label {
  font-size: .7rem; font-weight: 700; color: var(--txt3);
  text-transform: uppercase; letter-spacing: .08em;
}
.stat-card-change {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .72rem; font-weight: 700; margin-top: 8px;
  padding: 2px 7px; border-radius: 999px;
}
.stat-card-change.up { background: rgba(74,222,128,.1); color: var(--vert) }
.stat-card-change.down { background: rgba(239,68,68,.1); color: #EF4444 }

/* ── Pill / Tag premium ── */
.tag-pill {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 600;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: var(--txt2);
  transition: background .15s, border-color .15s, color .15s;
  cursor: default;
}
.tag-pill:hover, .tag-pill.actif {
  background: rgba(229,193,88,.1); border-color: rgba(229,193,88,.3); color: var(--or);
}

/* ── Input premium ── */
.input-premium {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  color: var(--txt); font-family: var(--font-body); font-size: .9rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
  outline: none;
}
.input-premium:focus {
  border-color: rgba(229,193,88,.4);
  background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 3px rgba(229,193,88,.08), 0 4px 16px rgba(229,193,88,.06);
}
.input-premium::placeholder { color: rgba(148,163,184,.35) }

/* ── Divider premium ── */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229,193,88,.25) 20%, rgba(167,139,250,.15) 80%, transparent);
  margin: 32px 0;
}
.divider-subtle {
  height: 1px;
  background: rgba(255,255,255,.06);
  margin: 24px 0;
}

/* ── Section label ── */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--or); margin-bottom: 14px;
  font-family: var(--font-display);
}
.section-eyebrow::before {
  content: '';
  display: inline-block; width: 20px; height: 1.5px;
  background: linear-gradient(90deg, var(--or), transparent);
  border-radius: 1px;
}

/* ── Glow spot derrière titres ── */
.title-glow-wrap { position: relative; display: inline-block }
.title-glow-wrap::after {
  content: '';
  position: absolute; inset: -20% -15%; z-index: -1;
  background: radial-gradient(ellipse, rgba(229,193,88,.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}

/* ── Skeleton loader v2 ── */
.skeleton-v2 {
  background: linear-gradient(90deg,
    rgba(255,255,255,.04) 0%,
    rgba(255,255,255,.08) 30%,
    rgba(255,255,255,.04) 60%
  );
  background-size: 300% 100%;
  animation: skeleton-wave 1.6s ease-in-out infinite;
  border-radius: var(--r-sm);
}

/* ── Empty state premium ── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 24px; text-align: center; gap: 12px;
}
.empty-state-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: var(--txt3); margin-bottom: 4px;
}
.empty-state-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--txt) }
.empty-state-desc { font-size: .83rem; color: var(--txt3); max-width: 280px; line-height: 1.55 }

/* ── Toast v2 ── */
.toast {
  min-width: 260px; max-width: 380px;
  padding: 14px 18px;
  background: rgba(14,18,28,.97);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 0 0.5px rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
  display: flex; align-items: flex-start; gap: 12px;
  animation: toastIn .35s cubic-bezier(.34,1.56,.64,1) both;
  pointer-events: all;
  cursor: pointer;
  position: relative; overflow: hidden;
}
.toast::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
}
.toast.success::before { background: var(--vert) }
.toast.error::before { background: #EF4444 }
.toast.info::before { background: var(--bleu) }
.toast.warning::before { background: var(--orange) }
.toast-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.toast.success .toast-icon { background: rgba(74,222,128,.12); color: var(--vert) }
.toast.error .toast-icon { background: rgba(239,68,68,.12); color: #EF4444 }
.toast.info .toast-icon { background: rgba(96,165,250,.12); color: var(--bleu) }
.toast.warning .toast-icon { background: rgba(251,146,60,.12); color: var(--orange) }
.toast-titre { font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--txt) }
.toast-msg { font-size: .78rem; color: var(--txt2); margin-top: 2px; line-height: 1.4 }

/* ── Verified badge ── */
.verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.2);
  color: var(--vert); font-size: .62rem; font-weight: 800; letter-spacing: .06em;
}

/* ── Score ring premium ── */
.score-ring-premium {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
}
.score-ring-premium svg { transform: rotate(-90deg) }
.score-ring-premium .ring-track { fill: none; stroke: rgba(229,193,88,.1); stroke-width: 4 }
.score-ring-premium .ring-progress {
  fill: none;
  stroke: url(#goldGrad); stroke-width: 4; stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(.22,1,.36,1);
}
.score-ring-premium .ring-value {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; color: var(--txt);
}

/* ── Gradient gold SVG def ── */
.svg-defs { position: absolute; width: 0; height: 0 }

/* ── Link hover underline premium ── */
.link-gold {
  color: var(--or); text-decoration: none;
  background: linear-gradient(var(--or), var(--or)) no-repeat 0 100%;
  background-size: 0 1px; transition: background-size .3s ease;
}
.link-gold:hover { background-size: 100% 1px }

/* ── Profil avatar premium ── */
.avatar-lg {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; color: #0A0D14;
  position: relative; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(229,193,88,.3), 0 8px 24px rgba(229,193,88,.2);
}
.avatar-lg::after {
  content: '';
  position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid rgba(229,193,88,.2);
  animation: avatar-ring-pulse 3s ease infinite;
}

/* ── Hero section ── */
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(229,193,88,.08); border: 1px solid rgba(229,193,88,.2);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  color: var(--or); font-family: var(--font-display);
  margin-bottom: 20px;
}
.hero-label-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--or); box-shadow: 0 0 8px var(--or);
  animation: glow-breathe 2s ease infinite;
}

/* ── Responsive global ── */
@media (max-width: 768px) {
  body { padding-top: 54px }
  h1 { font-size: clamp(1.8rem, 6vw, 2.8rem) }
  h2 { font-size: clamp(1.4rem, 5vw, 2rem) }
}

/* ── Menu avatar logout style danger ── */
.menu-avatar-logout { color: rgba(239,68,68,.75) }
.menu-avatar-logout:hover { background: rgba(239,68,68,.08) !important; color: #EF4444 !important }

/* ── Nouveau: section title underline gold ── */
.section-title-underline {
  position: relative; display: inline-block; padding-bottom: 10px;
}
.section-title-underline::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--or), transparent);
  border-radius: 1px;
}

/* ── Gradient mesh backgrounds ── */
.bg-mesh-gold {
  background:
    radial-gradient(ellipse 60% 40% at 0% 50%, rgba(229,193,88,.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 100% 50%, rgba(167,139,250,.04) 0%, transparent 60%),
    var(--nuit2);
}
.bg-mesh-dark {
  background:
    radial-gradient(ellipse 50% 70% at 50% 0%, rgba(229,193,88,.05) 0%, transparent 55%),
    var(--nuit);
}

/* ── Hover card lift ── */
.hover-lift {
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.4) }

/* ── Glow borders ── */
.border-glow-or {
  border: 1px solid rgba(229,193,88,.2);
  box-shadow: 0 0 20px rgba(229,193,88,.08), inset 0 0 20px rgba(229,193,88,.03);
}
.border-glow-or:hover {
  border-color: rgba(229,193,88,.4);
  box-shadow: 0 0 30px rgba(229,193,88,.15), inset 0 0 20px rgba(229,193,88,.05);
}

/* ── Tab bar premium ── */
.tab-bar-premium {
  display: flex; align-items: center; gap: 2px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding-bottom: 0;
}
.tab-premium {
  padding: 10px 18px;
  font-size: .8rem; font-weight: 600; font-family: var(--font-display);
  color: var(--txt3); cursor: pointer; position: relative;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .2s;
  white-space: nowrap;
}
.tab-premium:hover { color: var(--txt2) }
.tab-premium.active { color: var(--or); border-bottom-color: var(--or) }

/* ── Progress bar premium ── */
.progress-bar {
  height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.07); overflow: hidden;
}
.progress-bar-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--or-h), var(--or), #F0D060);
  transition: width 1.2s cubic-bezier(.22,1,.36,1);
}

/* ── Nouveau: orbe décoratif section ── */
.section-orbe {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none; z-index: 0;
}
.orbe-gold { background: rgba(229,193,88,.07) }
.orbe-purple { background: rgba(167,139,250,.06) }
.orbe-green { background: rgba(74,222,128,.04) }
