/* ============================================================
   FondAnalyse Pro - Global styles
   Tout le reste est en Tailwind. Ici uniquement ce que Tailwind
   exprime mal (gradients complexes, borders degradees, animations).
   ============================================================ */

body {
  font-feature-settings: "cv11", "ss01", "ss03";
  background:
    radial-gradient(ellipse 100% 35% at 50% -10%, rgba(212, 175, 55, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 60%,  rgba(212, 175, 55, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 90%, rgba(212, 175, 55, 0.04) 0%, transparent 60%),
    #000;
  background-attachment: fixed;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulseSoft {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
.animate-shimmer  { background-size: 200% 100%; animation: shimmer 4s linear infinite; }
.animate-pulseSoft { animation: pulseSoft 3s ease-in-out infinite; }

.gold-text {
  background: linear-gradient(180deg, #f4d06f 0%, #d4af37 50%, #8b6f1f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Glass card avec bordure degradee or (inside pseudo element) */
.glass {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.015) 0%, rgba(255,255,255,0) 50%, rgba(212,175,55,0.025) 100%),
    rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}
.glass::before {
  content: '';
  position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(212,175,55,0.5)  0%,
    rgba(212,175,55,0.05) 30%,
    rgba(212,175,55,0.05) 70%,
    rgba(212,175,55,0.4)  100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.glass.bull::before {
  background: linear-gradient(135deg, rgba(52,214,165,0.6) 0%, rgba(212,175,55,0.15) 50%, rgba(212,175,55,0.4) 100%);
}
.glass.bear::before {
  background: linear-gradient(135deg, rgba(255,71,87,0.6)  0%, rgba(212,175,55,0.15) 50%, rgba(212,175,55,0.4) 100%);
}
.glass.neut::before {
  background: linear-gradient(135deg, rgba(245,197,66,0.6) 0%, rgba(212,175,55,0.15) 50%, rgba(212,175,55,0.4) 100%);
}
.top-shine::after {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, #f4d06f, transparent);
  opacity: .6;
  pointer-events: none;
}

/* Reco banner (recommandation - fond degrade or subtil) */
.reco-bg {
  background:
    linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(212,175,55,0.02) 100%),
    rgba(0,0,0,0.5);
}

/* Item hover translation (forces/risques) */
.item-hover { transition: transform .25s, background .25s; }
.item-hover:hover { transform: translateX(3px); }

/* Scrollbar dark-gold */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.15); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: rgba(212,175,55,0.35); }

/* Details marker (collapsibles Fed communications) */
details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details[open] summary .chev { transform: rotate(180deg); }
.chev { transition: transform .25s; }

/* Select dropdown : fond noir, texte blanc (sinon illisible sur thème sombre) */
select option,
select optgroup {
  background: #000;
  color: #fff;
}
select optgroup {
  color: #d4af37;
  font-style: normal;
  font-weight: 600;
}
