/* ============================================================
   FootCongo — styles additionnels (au-delà de Tailwind utility)
   ============================================================ */

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }
.font-display { font-family: 'Space Grotesk', sans-serif; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #050B1E; }
::-webkit-scrollbar-thumb { background: #1c2a5e; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #2a3d80; }

/* --- Nav shrink on scroll --- */
#site-nav[data-scrolled="true"] { background: rgba(5, 11, 30, 0.85); backdrop-filter: blur(14px); box-shadow: 0 8px 30px -10px rgba(0,0,0,0.6); border-bottom: 1px solid rgba(255,255,255,0.06); }
#site-nav[data-scrolled="false"] { background: transparent; }

/* --- Scroll reveal --- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="left"].is-visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="right"].is-visible { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(.92); }
[data-reveal="scale"].is-visible { transform: scale(1); }

/* stagger children via CSS var set inline: style="--d:120ms" */
[data-reveal] { transition-delay: var(--d, 0ms); }

/* --- Hero background: wax-print inspired diagonal motif --- */
.hero-bg {
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(0,87,216,0.55), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(206,16,33,0.35), transparent 55%),
    linear-gradient(160deg, #050B1E 0%, #0A1233 45%, #071233 100%);
}

.pattern-wax {
  background-image:
    repeating-linear-gradient(45deg, rgba(247,214,24,0.06) 0 2px, transparent 2px 34px),
    repeating-linear-gradient(-45deg, rgba(206,16,33,0.05) 0 2px, transparent 2px 34px);
}

.diagonal-flag {
  background: linear-gradient(115deg, #0033A0 0%, #0033A0 38%, #F7D618 38%, #F7D618 42%, #CE1021 42%, #CE1021 58%, #F7D618 58%, #F7D618 62%, #0033A0 62%, #0033A0 100%);
}

/* --- Floating blobs --- */
@keyframes float-slow { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-30px) scale(1.06); } }
@keyframes float-slower { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-25px,25px) scale(1.08); } }
.animate-float-slow { animation: float-slow 9s ease-in-out infinite; }
.animate-float-slower { animation: float-slower 13s ease-in-out infinite; }

/* --- Ball bounce --- */
@keyframes ball-bounce {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-38px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}
.animate-ball { animation: ball-bounce 3.2s cubic-bezier(.5,0,.5,1) infinite; }
.ball-shadow { animation: ball-shadow 3.2s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes ball-shadow { 0%,100% { transform: scaleX(1); opacity:.35; } 50% { transform: scaleX(.6); opacity:.15; } }

/* --- Star twinkle (echoes the DRC flag star) --- */
@keyframes twinkle { 0%,100% { opacity: .55; transform: scale(1) rotate(0deg); } 50% { opacity: 1; transform: scale(1.18) rotate(8deg); } }
.animate-twinkle { animation: twinkle 2.6s ease-in-out infinite; }

/* --- Gradient text --- */
.text-gradient-rdc {
  background: linear-gradient(90deg, #F7D618, #FFEB99 30%, #F7D618 55%, #CE1021 80%, #F7D618);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* --- Live pulse dot --- */
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6);} 70% { box-shadow: 0 0 0 10px rgba(239,68,68,0);} 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0);} }
.live-dot { animation: pulse-ring 1.8s cubic-bezier(0.4,0,0.6,1) infinite; }

/* --- Card hover lift --- */
.card-lift { transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease; }
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -18px rgba(0,0,0,.55); }

/* --- Animated counters container helper --- */
.counter { font-variant-numeric: tabular-nums; }

/* --- Stat bars --- */
.stat-bar { position: relative; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.stat-bar > span { position: absolute; inset: 0; width: 0; border-radius: 999px; transition: width 1.1s cubic-bezier(.22,.61,.36,1); }
.stat-bar.in-view > span { width: var(--val, 0%); }

/* --- Field lines decorative --- */
.field-lines { background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 64px); }

/* --- Section marquee ticker --- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.animate-marquee { animation: marquee 28s linear infinite; }

/* --- Tab underline animation --- */
.tab-btn { position: relative; }
.tab-btn[data-active="true"] { color: white; }
.tab-btn[data-active="true"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, #F7D618, #CE1021);
  border-radius: 2px;
}

/* --- Leaflet dark tweak --- */
.leaflet-container { background: #0A1233 !important; border-radius: 1rem; }
.leaflet-popup-content-wrapper { background: #0A1233; color: #fff; border-radius: .75rem; }
.leaflet-popup-tip { background: #0A1233; }
.leaflet-popup-content-wrapper a { color: #F7D618; }

/* --- Utility: hide scrollbar for chip rows --- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
