function StatusStepper({statuses,current}){
const labels = {paiement_a_verifier:'Paiement à vérifier',paiement_confirme:'Paiement confirmé',en_preparation:'En préparation',en_route:'En route',livree:'Livrée'};
const icons = {paiement_a_verifier:'clock',paiement_confirme:'check',en_preparation:'package',en_route:'truck',livree:'home'};
function Icon({name,size=18}){const pascal=name.replace(/(^\w|-\w)/g,c=>c.replace('-','').toUpperCase());const nodes=window.lucide&&window.lucide.icons[pascal];const inner=nodes?nodes.map(([tag,attrs])=>'<'+tag+' '+Object.entries(attrs).map(([k,v])=>k+'="'+v+'"').join(' ')+'/>').join(''):'';const svg='';return React.createElement('span',{style:{display:'inline-flex',width:size,height:size},dangerouslySetInnerHTML:{__html:svg}});}
const currentIndex = statuses.indexOf(current);
const steps = statuses.map(function(s,i){
const done = i<=currentIndex;
const isCurrent = i===currentIndex;
const dot = React.createElement('div',{style:{
width:40,height:40,borderRadius:'50%',display:'flex',alignItems:'center',justifyContent:'center',flexShrink:0,
background:done?'var(--brand-primary)':'var(--color-gray-100)',
color:done?'#fff':'var(--text-muted)',
border:isCurrent?'3px solid var(--brand-accent)':'none',
boxShadow:isCurrent?'0 0 0 4px var(--surface-tint-orange)':'none'
}},React.createElement(Icon,{name:icons[s]}));
const label = React.createElement('div',{style:{fontFamily:'var(--font-body)',fontSize:12.5,fontWeight:isCurrent?700:600,color:done?'var(--text-primary)':'var(--text-muted)',marginTop:8,textAlign:'center'}},labels[s]);
const line = i