// Header.jsx — sticky header with logo, nav, and CTA const { useState, useEffect } = React; function Logo() { return (
FFIT
Fiers Frédéric · IT
); } function NavLink({ href, children, active }) { return ( e.currentTarget.style.color = 'var(--ffit-fg-1)'} onMouseLeave={e => e.currentTarget.style.color = active ? 'var(--ffit-accent)' : 'var(--ffit-fg-2)'}> {children} ); } function Header({ onCtaClick }) { const [scrolled, setScrolled] = useState(false); useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 8); window.addEventListener('scroll', onScroll); return () => window.removeEventListener('scroll', onScroll); }, []); return (
); } window.Header = Header;