PageSourceSearch

https://pasec.confemen.org/assets/CountryComparatorView-BqM05SVZ.js

js confemen.org collected 2026-10-02 04:31:03 UTC 56,515 bytes, 2 lines download raw bytes

1import{d as pt,u as ht,r as te,l as R,A as l,y as e,z as v,B as n,N as ie,x as ce,F as p,D as h,E as T,p as xt,q as r,C as z,a6 as b,K as le}from"./core-ui-whnTH_a7.js";import"./vendor-DheoUw-d.js";const gt={class:"min-h-screen bg-[#f0f4f9] font-sans text-slate-800 pb-16"},ft={class:"polygon-bg-style-1 polygon-bg-style-2 bg-cover bg-no-repeat bg-center relative bg-blend-screen pt-36 sm:pt-40 pb-12 sm:pb-16 bg-[url('/images/searchPages.jpg')] before:content-[''] before:absolute before:inset-0 before:block before:bg-[#5F3594]"},mt={class:"relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 space-y-6"},bt={class:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-amber-400/20 backdrop-blur-md border border-amber-400/40 text-amber-300 text-xs font-bold tracking-widest uppercase"},vt={class:"text-3xl sm:text-5xl font-black tracking-tight leading-tight text-white max-w-4xl",style:{"text-shadow":"0 2px 12px rgba(0,0,0,0.5)"}},yt={class:"max-w-3xl text-white/90 text-sm sm:text-base font-normal leading-relaxed opacity-95",style:{"text-shadow":"0 1px 6px rgba(0,0,0,0.4)"}},St={class:"grid grid-cols-1 sm:grid-cols-3 gap-4 pt-2"},kt={class:"flex items-start gap-3"},_t={class:"font-bold text-white text-sm leading-tight"},wt={class:"text-slate-200 text-xs mt-1.5 leading-relaxed"},Ct={class:"flex items-start gap-3"},Pt={class:"font-extrabold text-amber-300 text-sm leading-tight"},$t={class:"text-slate-100 text-xs mt-1.5 leading-relaxed font-medium"},Gt={class:"flex items-start gap-3"},At={class:"font-bold text-white text-sm leading-tight"},Mt={class:"text-slate-200 text-xs mt-1.5 leading-relaxed"},Bt={class:"flex items-center gap-2 pt-2 text-slate-200 text-xs border-t border-white/10"},Ft={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 space-y-8 pt-8"},Rt={class:"bg-white rounded-3xl border border-slate-200 shadow-sm overflow-hidden divide-y divide-slate-100"},Et={class:"p-6 sm:p-8"},Tt={class:"flex flex-wrap items-center justify-between gap-4 mb-4"},jt={class:"text-xs text-slate-500 mt-0.5"},Dt={class:"flex flex-wrap gap-2.5"},zt=["onClick"],Lt={key:0,class:"w-2 h-2 rounded-full bg-amber-400 ml-1"},Vt={class:"p-6 sm:p-8"},Nt={class:"flex flex-wrap gap-3"},It=["onClick"],qt={class:"font-black"},Ht={class:"text-[10px] font-normal opacity-80"},Ut={class:"p-6 sm:p-8"},Yt={class:"flex flex-wrap gap-3"},Wt=["onClick"],Ot={class:"font-black"},Xt={class:"text-[10px] font-normal opacity-80"},Kt={class:"p-6 sm:p-8"},Zt={class:"flex flex-wrap gap-3"},Jt=["onClick"],Qt={class:"font-black"},es={class:"text-[10px] font-normal opacity-80"},ts={class:"p-6 sm:p-8"},ss={class:"flex flex-wrap gap-2.5"},os=["onClick"],as={key:0,class:"bg-white rounded-3xl p-12 text-center border border-slate-200 shadow-sm"},ls={key:1,class:"bg-white rounded-3xl p-12 text-center border border-slate-200 shadow-sm"},rs={key:2,id:"comparison-results-area",class:"space-y-8"},ns={class:"bg-white rounded-3xl p-6 sm:p-8 border border-slate-200 shadow-sm space-y-8"},ds={class:"border-b border-slate-100 pb-4"},is={class:"text-xs text-slate-500"},cs={key:0,class:"space-y-3"},us={class:"flex justify-between items-center text-xs font-extrabold text-slate-700"},ps={class:"uppercase tracking-wider flex items-center gap-2"},hs={class:"space-y-3 bg-slate-50/80 p-5 rounded-2xl border border-slate-100"},xs={class:"w-36 font-bold text-slate-700 flex items-center gap-1.5 flex-shrink-0 truncate"},gs={class:"flex-1 bg-slate-200 h-6 rounded-full overflow-hidden relative"},fs={key:1,class:"space-y-3"},ms={class:"flex justify-between items-center text-xs font-extrabold text-slate-700"},bs={class:"uppercase tracking-wider flex items-center gap-2"},vs={class:"space-y-3 bg-slate-50/80 p-5 rounded-2xl border border-slate-100"},ys={class:"w-36 font-bold text-slate-700 flex items-center gap-1.5 flex-shrink-0 truncate"},Ss={class:"flex-1 bg-slate-200 h-6 rounded-full overflow-hidden relative"},ks={key:2,class:"space-y-3"},_s={class:"flex justify-between items-center text-xs font-extrabold text-slate-700"},ws={class:"uppercase tracking-wider flex items-center gap-2"},Cs={class:"space-y-3 bg-slate-50/80 p-5 rounded-2xl border border-slate-100"},Ps={class:"w-36 font-bold text-slate-700 flex items-center gap-1.5 flex-shrink-0 truncate"},$s={class:"flex-1 bg-slate-200 h-6 rounded-full overflow-hidden"},Gs={key:3,class:"space-y-3"},As={class:"flex justify-between items-center text-xs font-extrabold text-slate-700"},Ms={class:"uppercase tracking-wider flex items-center gap-2"},Bs={class:"space-y-3 bg-slate-50/80 p-5 rounded-2xl border border-slate-100"},Fs={class:"w-36 font-bold text-slate-700 flex items-center gap-1.5 flex-shrink-0 truncate"},Rs={class:"flex-1 flex items-center gap-2"},Es={class:"flex-1 bg-slate-200 h-6 rounded-full overflow-hidden relative"},Ts={class:"flex items-center gap-2 text-xs font-extrabold text-slate-700 uppercase tracking-wider"},js={class:"bg-slate-50/80 p-4 rounded-2xl border border-slate-100 overflow-x-auto"},Ds=["viewBox"],zs=["x1","y1","x2","y2"],Ls=["x","y"],Vs=["x","y","height","fill"],Ns=["x","y","fill"],Is=["x","y","transform"],qs=["x1","y1","x2","y2"],Hs=["x1","x2","y2"],Us={key:0,class:"flex flex-col items-center space-y-6"},Ys={viewBox:"0 0 420 440",class:"w-full max-w-2xl",preserveAspectRatio:"xMidYMid meet"},Ws=["points"],Os=["x2","y2"],Xs=["x","y","text-anchor"],Ks=["points","fill","stroke"],Zs=["cx","cy","fill"],Js={class:"flex flex-wrap gap-4 justify-center"},Qs={key:1,class:"text-center py-8 text-sm text-slate-500"},eo={class:"flex items-center gap-2 text-xs font-extrabold text-slate-700 uppercase tracking-wider"},to={class:"bg-slate-50/80 p-4 rounded-2xl border border-slate-100 overflow-x-auto"},so=["viewBox"],oo=["x1","y1","x2","y2"],ao=["x","y"],lo=["points","stroke"],ro=["cx","cy","fill"],no=["x","y","fill"],io=["x","y","transform"],co={class:"flex items-center gap-2 text-xs font-extrabold text-slate-700 uppercase tracking-wider"},uo={class:"bg-slate-50/80 p-4 rounded-2xl border border-slate-100 overflow-x-auto"},po=["viewBox"],ho=["points","fill"],xo=["points","stroke"],go=["cx","cy","fill"],fo=["x","y"],mo=["x","y","transform"],bo={key:5,class:"flex flex-col md:flex-row items-center justify-center gap-8 py-4"},vo={viewBox:"0 0 240 240",class:"w-64 h-64 flex-shrink-0"},yo={transform:"translate(120,120)"},So=["d","fill"],ko={"text-anchor":"middle",dy:"14","font-size":"10",fill:"#64748b"},_o={class:"grid grid-cols-2 gap-x-6 gap-y-2.5 text-xs"},wo={class:"font-semibold text-slate-700"},Co={class:"font-bold text-[#1A234B] ml-1"},Po={key:6,class:"space-y-4"},$o={class:"flex items-center justify-between text-xs font-bold text-slate-700"},Go={class:"flex items-center gap-3"},Ao={class:"bg-slate-50/80 p-5 rounded-2xl border border-slate-100 space-y-5"},Mo={class:"flex items-center gap-2 text-xs font-bold text-slate-800"},Bo={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-2"},Fo={class:"font-bold text-slate-900"},Ro={key:7,class:"space-y-3"},Eo={class:"bg-slate-50/80 p-4 rounded-2xl border border-slate-100 overflow-x-auto"},To={viewBox:"0 0 520 300",class:"w-full min-w-[480px]",preserveAspectRatio:"xMidYMid meet"},jo=["cx","cy","fill"],Do=["x","y"],zo={key:8,class:"space-y-4"},Lo={class:"overflow-x-auto rounded-2xl border border-slate-200"},Vo={class:"w-full text-left text-xs border-collapse"},No={class:"bg-slate-100 text-slate-700 font-bold border-b border-slate-200"},Io={class:"p-3 font-bold text-slate-900 flex items-center gap-2"},qo={key:9,class:"py-6 text-center text-sm text-slate-400 border border-dashed border-slate-200 rounded-2xl"},Ho={class:"flex justify-between items-center mb-4"},Uo={class:"text-xs text-slate-500 mt-0.5"},Yo={class:"text-xs font-semibold text-slate-500"},Wo={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6"},Oo={class:"space-y-4"},Xo={class:"border-b border-slate-100 pb-4"},Ko={class:"flex items-center justify-end"},Zo=["onClick"],Jo={class:"text-base font-black text-slate-900 truncate mt-1"},Qo={class:"text-[10px] text-slate-400 font-medium"},ea={class:"space-y-2.5 text-xs"},ta={key:0,class:"p-3 rounded-xl border flex justify-between items-center",style:{background:"#eff6ff","border-color":"#bfdbfe"}},sa={class:"font-black text-blue-900 text-sm"},oa={key:1,class:"p-3 rounded-xl border flex justify-between items-center",style:{background:"#f0fdf4","border-color":"#bbf7d0"}},aa={class:"font-black text-emerald-900 text-sm"},la={key:2,class:"p-3 rounded-xl border flex justify-between items-center",style:{background:"#fffbeb","border-color":"#fde68a"}}
1,ra={key:3,class:"p-3 rounded-xl border flex justify-between items-center",style:{background:"#fdf4ff","border-color":"#e9d5ff"}},na={class:"font-bold text-purple-900"},da={class:"pt-4 border-t border-slate-100 flex items-center gap-2"},ia=["onClick","title"],ca=["href","title"],ua={class:"bg-white rounded-3xl border border-slate-200 shadow-sm overflow-hidden p-6 sm:p-8"},pa={class:"flex justify-between items-center border-b border-slate-100 pb-4 mb-4"},ha={class:"text-xs text-slate-500"},xa={class:"text-xs font-semibold text-slate-400"},ga={class:"overflow-x-auto"},fa={class:"w-full text-left text-xs border-collapse"},ma={class:"divide-y divide-slate-100 font-medium"},ba={class:"py-3.5 px-4 font-bold text-slate-900"},va={class:"flex items-center gap-2"},ya={class:"py-3.5 px-4 font-semibold text-slate-600"},Sa={class:"py-3.5 px-4 font-bold text-[#1A234B]"},ka={class:"py-3.5 px-4 text-right"},_a={key:3,class:"fixed inset-0 z-50 flex items-center justify-center bg-slate-900/70 backdrop-blur-sm p-4 sm:p-6"},wa={class:"bg-white rounded-3xl w-full max-w-5xl h-[88vh] flex flex-col overflow-hidden shadow-2xl border border-slate-200 animate-appear"},Ca={class:"px-6 py-4 bg-[#1A234B] text-white flex items-center justify-between shadow-md"},Pa={class:"font-extrabold text-sm sm:text-base leading-snug"},$a={class:"flex items-center gap-3"},Ga=["href"],Aa={class:"flex-1 bg-slate-100 relative"},Ma=["src"],ue=40,ve=10,L=52,pe=18,w=180,P=20,Ba=68,re=210,ne=215,O=155,Ta=pt({__name:"CountryComparatorView",setup(Fa){const{locale:I}=ht(),he=o=>I.value==="fr"?o:`${o}-${I.value}`,ye=[{key:"cm2",label:"CM2 (6e année)",sub:"Fin de scolarité primaire"},{key:"cp",label:"CP (2e année)",sub:"Début de scolarité primaire"}],j=te("cm2"),_=R(()=>ye.find(o=>o.key===j.value)?.label??"CM2"),Se=[{key:"2024",label:"PASEC2024",sub:"Évaluation internationale récente"},{key:"2019",label:"PASEC2019",sub:"Évaluation internationale 2019"},{key:"2014",label:"PASEC2014",sub:"Évaluation de référence 2014"}],M=te("2019"),De=R(()=>Se.find(o=>o.key===M.value)?.label??"PASEC2019"),se=[{key:"reading",label:"Lecture",sub:"Score moyen (pts)",color:"#3B82F6"},{key:"math",label:"Mathématiques",sub:"Score moyen (pts)",color:"#10B981"},{key:"threshold",label:"Seuil de réussite",sub:"% élèves au niveau suffisant",color:"#F59E0B"},{key:"gender",label:"Écart de Genre",sub:"Garçons / Filles (pts)",color:"#8B5CF6"}],u=te(["reading","math","threshold","gender"]),ze=o=>{u.value=u.value.includes(o)?u.value.filter(s=>s!==o):[...u.value,o]},Le=()=>{u.value=se.map(o=>o.key)},q=o=>
1se.find(s=>s.key===o)?.label??o,B=o=>se.find(s=>s.key===o)?.color??"#64748B",ke=[{key:"horizontal",label:"Barres horizontales"},{key:"vertical",label:"Barres verticales"},{key:"radar",label:"Diagramme Radar"},{key:"line",label:"Graphique Linéaire"},{key:"area",label:"Graphique en Aire"},{key:"donut",label:"Diagramme Donut"},{key:"grouped",label:"Barres Groupées"},{key:"scatter",label:"Nuage de Points"},{key:"heatmap",label:"Carte de Chaleur"},{key:"table",label:"Tableau seul"}],F=te("horizontal"),Ve=[{code:"sn",name:"Sénégal",readingScore:582,mathScore:565,thresholdPct:68,genderGap:"+4.0"},{code:"ga",name:"Gabon",readingScore:658,mathScore:562,thresholdPct:95,genderGap:"+2.2"},{code:"bj",name:"Bénin",readingScore:595,mathScore:542,thresholdPct:72,genderGap:"+2.5"},{code:"bf",name:"Burkina Faso",readingScore:558,mathScore:552,thresholdPct:65,genderGap:"-0.3"},{code:"bi",name:"Burundi",readingScore:525,mathScore:530,thresholdPct:56,genderGap:"+1.5"},{code:"cm",name:"Cameroun",readingScore:538,mathScore:495,thresholdPct:58,genderGap:"+3.2"},{code:"ci",name:"Côte d'Ivoire",readingScore:510,mathScore:475,thresholdPct:44,genderGap:"+1.5"},{code:"tg",name:"Togo",readingScore:502,mathScore:498,thresholdPct:50,genderGap:"+1.0"},{code:"cg",name:"Congo",readingScore:495,mathScore:482,thresholdPct:46,genderGap:"+0.7"},{code:"gn",name:"Guinée",readingScore:480,mathScore:466,thresholdPct:40,genderGap:"-1.0"},{code:"mg",name:"Madagascar",readingScore:472,mathScore:460,thresholdPct:37,genderGap:"+1.8"},{code:"ne",name:"Niger",readingScore:475,mathScore:465,thresholdPct:34,genderGap:"-1.5"},{code:"cd",name:"RDC",readingScore:468,mathScore:462,thresholdPct:35,genderGap:"-1.6"},{code:"td",name:"Tchad",readingScore:456,mathScore:455,thresholdPct:30,genderGap:"-2.0"}],Ne=[{code:"sn",name:"Sénégal",readingScore:562,mathScore:548,thresholdPct:64,genderGap:"+3.8"},{code:"ga",name:"Gabon",readingScore:634,mathScore:545,thresholdPct:91,genderGap:"+1.9"},{code:"bj",name:"Bénin",readingScore:572,mathScore:526,thresholdPct:67,genderGap:"+2.2"},{code:"bf",name:"Burkina Faso",readingScore:536,mathScore:535,thresholdPct:60.5,genderGap:"-0.1"},{code:"bi",name:"Burundi",readingScore:505,mathScore:510,thresholdPct:50,genderGap:"+1.2"},{code:"cm",name:"Cameroun",readingScore:515,mathScore:479,thresholdPct:53,genderGap:"+2.8"},{code:"ci",name:"Côte d'Ivoire",readingScore:487,mathScore:460,thresholdPct:39.5,genderGap:"+1.8"},{code:"tg",name:"Togo",readingScore:480,mathScore:484,thresholdPct:46,genderGap:"+1.3"},{code:"cg",name:"Congo",readingScore:474,mathScore:466,thresholdPct:42,genderGap:"+0.5"},{code:"gn",name:"Guinée",readingScore:458,mathScore:450,thresholdPct:36,genderGap:"-1.3"},{code:"mg",name:"Madagascar",readingScore:450,mathScore:444,thresholdPct:33,genderGap:"+1.5"},{code:"ne",name:"Niger",readingScore:454,mathScore:449,thresholdPct:30,genderGap:"-1.8"}
1,{code:"cd",name:"RDC",readingScore:448,mathScore:445,thresholdPct:31,genderGap:"-1.4"},{code:"td",name:"Tchad",readingScore:435,mathScore:439,thresholdPct:26,genderGap:"-2.2"}],Ie=[{code:"ga",name:"Gabon",readingScore:645,mathScore:555,thresholdPct:93,genderGap:"+2.5"},{code:"bj",name:"Bénin",readingScore:586,mathScore:534,thresholdPct:68.3,genderGap:"+2.8"},{code:"sn",name:"Sénégal",readingScore:576,mathScore:558,thresholdPct:72.1,genderGap:"+4.2"},{code:"bf",name:"Burkina Faso",readingScore:552,mathScore:547,thresholdPct:62.5,genderGap:"-0.5"},{code:"cm",name:"Cameroun",readingScore:530,mathScore:488,thresholdPct:55,genderGap:"+3.5"},{code:"bi",name:"Burundi",readingScore:504,mathScore:512,thresholdPct:52,genderGap:"+1.2"},{code:"ci",name:"Côte d'Ivoire",readingScore:503,mathScore:469,thresholdPct:40.4,genderGap:"+1.8"},{code:"tg",name:"Togo",readingScore:496,mathScore:495,thresholdPct:48.2,genderGap:"+1.2"},{code:"cg",name:"Congo",readingScore:490,mathScore:478,thresholdPct:44,genderGap:"+0.8"},{code:"gn",name:"Guinée",readingScore:475,mathScore:462,thresholdPct:38.5,genderGap:"-0.9"},{code:"ne",name:"Niger",readingScore:471,mathScore:462,thresholdPct:32.5,genderGap:"-1.4"},{code:"mg",name:"Madagascar",readingScore:468,mathScore:455,thresholdPct:35.2,genderGap:"+2.1"},{code:"cd",name:"RDC",readingScore:462,mathScore:458,thresholdPct:32,genderGap:"-1.8"},{code:"td",name:"Tchad",readingScore:451,mathScore:451,thresholdPct:28,genderGap:"-2.1"}],qe=[{code:"ga",name:"Gabon",readingScore:620,mathScore:538,thresholdPct:89,genderGap:"+2.0"},{code:"bj",name:"Bénin",readingScore:562,mathScore:518,thresholdPct:63.8,genderGap:"+2.5"},{code:"sn",name:"Sénégal",readingScore:555,mathScore:542,thresholdPct:67.5,genderGap:"+3.8"},{code:"bf",name:"Burkina Faso",readingScore:530,mathScore:528,thresholdPct:58.2,genderGap:"-0.2"},{code:"cm",name:"Cameroun",readingScore:508,mathScore:472,thresholdPct:50.4,genderGap:"+3.0"},{code:"bi",name:"Burundi",readingScore:488,mathScore:495,thresholdPct:46,genderGap:"+1.0"},{code:"ci",name:"Côte d'Ivoire",readingScore:480,mathScore:452,thresholdPct:36.2,genderGap:"+2.1"},{code:"tg",name:"Togo",readingScore:474,mathScore:480,thresholdPct:44.5,genderGap:"+1.5"},{code:"cg",name:"Congo",readingScore:468,mathScore:462,thresholdPct:40,genderGap:"+0.5"},{code:"gn",name:"Guinée",readingScore:452,mathScore:446,thresholdPct:34,genderGap:"-1.2"},{code:"ne",name:"Niger",readingScore:448,mathScore:445,thresholdPct:28,genderGap:"-1.8"},{code:"mg",name:"Madagascar",readingScore:445,mathScore:440,thresholdPct:31.5,genderGap:"+1.8"}
1,{code:"cd",name:"RDC",readingScore:442,mathScore:440,thresholdPct:28,genderGap:"-1.5"},{code:"td",name:"Tchad",readingScore:430,mathScore:436,thresholdPct:24,genderGap:"-2.5"}],He=[{code:"bi",name:"Burundi",readingScore:594,mathScore:485,thresholdPct:74.5,genderGap:"+1.5"},{code:"sn",name:"Sénégal",readingScore:547,mathScore:496,thresholdPct:62,genderGap:"+3.0"},{code:"bf",name:"Burkina Faso",readingScore:540,mathScore:498,thresholdPct:59.8,genderGap:"-1.0"},{code:"tg",name:"Togo",readingScore:520,mathScore:497,thresholdPct:54,genderGap:"+0.8"},{code:"cg",name:"Congo",readingScore:503,mathScore:481,thresholdPct:48.5,genderGap:"+0.2"},{code:"bj",name:"Bénin",readingScore:497,mathScore:497,thresholdPct:47,genderGap:"+2.0"},{code:"cm",name:"Cameroun",readingScore:490,mathScore:490,thresholdPct:44.2,genderGap:"+2.5"},{code:"ci",name:"Côte d'Ivoire",readingScore:476,mathScore:476,thresholdPct:38.5,genderGap:"+1.2"},{code:"td",name:"Tchad",readingScore:433,mathScore:451,thresholdPct:26,genderGap:"-3.0"},{code:"ne",name:"Niger",readingScore:404,mathScore:406,thresholdPct:18.5,genderGap:"-2.0"}],Ue=[{code:"bi",name:"Burundi",readingScore:572,mathScore:468,thresholdPct:70.2,genderGap:"+1.2"},{code:"sn",name:"Sénégal",readingScore:525,mathScore:480,thresholdPct:58,genderGap:"+2.5"},{code:"bf",name:"Burkina Faso",readingScore:518,mathScore:482,thresholdPct:55.5,genderGap:"-1.2"},{code:"tg",name:"Togo",readingScore:498,mathScore:482,thresholdPct:50,genderGap:"+0.5"},{code:"cg",name:"Congo",readingScore:482,mathScore:465,thresholdPct:44.8,genderGap:"+0.1"},{code:"bj",name:"Bénin",readingScore:476,mathScore:481,thresholdPct:43.5,genderGap:"+1.8"},{code:"cm",name:"Cameroun",readingScore:468,mathScore:474,thresholdPct:41,genderGap:"+2.0"},{code:"ci",name:"Côte d'Ivoire",readingScore:455,mathScore:460,thresholdPct:35.2,genderGap:"+1.0"},{code:"td",name:"Tchad",readingScore:412,mathScore:435,thresholdPct:22,genderGap:"-3.2"},{code:"ne",name:"Niger",readingScore:385,mathScore:390,thresholdPct:15.5,genderGap:"-2.2"}],de=R(()=>M.value==="2024"?j.value==="cp"?Ne:Ve:M.value==="2014"?j.value==="cp"?Ue:He:j.value==="cp"?qe:Ie),E=te(["ga","sn","bj","bf"]),_e=o=>{E.value=E.value.includes(o)?E.value.filter(s=>s!==o):[...E.value,o]},we=()=>{E.value=de.value.map(o=>o.code)},Ye=()=>{E.value=[]},x=R(()=>E.value.map(o=>de.value.find(s=>s.code===o)).filter(o=>o!==void 0)),Ce={2019:{Sénégal:"/country-support/Rapport-PASEC2019_Senegal.pdf","Côte d'Ivoire":"/country-support/Rapport-PASEC2019_Cote-dIvoire.pdf",Cameroun:"/country-support/Rapport-PASEC2019_Cameroun.pdf","Burkina Faso":"/country-support/Rapport-PASEC2019_Burkina-Faso.pdf",Bénin:"https://api-services.pasec.confemen.org/media/public/media/country-support/Rapport-Analytique.pdf",Congo:"/country-support/Rapport-PASEC2019_Congo.pdf",Guinée:"/country-support/Rapport-PASEC2019_Guinee.pdf",Mauritanie:"/country-support/Rapport-Mauritanie.pdf",Madagascar:"https://www.confemen.org/wp-content/uploads/2013/07/Madagascar_rapport.pdf",Burundi:"https://www.confemen.org/wp-content/uploads/2013/07/burundi_rapport.pdf",Togo:"https://www.confemen.org/wp-content/uploads/2013/07/togo_rapport.pdf",Tchad:"https://www.confemen.org/wp-content/uploads/2013/07/tchad2010_rapport.pdf",Gabon:"https://www.confemen.org/wp-content/uploads/2013/07/gabon2006.pdf",Niger:"https://www.confemen.org/wp-content/uploads/2013/07/niger_rapport.pdf"},2014:{Sénégal:"/country-support/Rapport-PASEC2014_Senegal.pdf","Côte d'Ivoire":"/country-support/Rapport-PASEC2014_Cote-dIvoire.pdf",Cameroun:"/country-support/Rapport-PASEC2014_Cameroun.pdf","Burkina Faso":"/country-support/Rapport-PASEC2014_Burkina-Faso.pdf",Bénin:"/country-support/Rapport-PASEC2014_Benin.pdf",Burundi:"https://www.confemen.org/wp-content/uploads/2013/07/burundi_rapport.pdf",Congo:"/country-support/Rapport-PASEC2019_Congo.pdf",Togo:"https://www.confemen.org/wp-content/uploads/2013/07/togo_rapport.pdf",Tchad:"https://www.confemen.org/wp-content/uploads/2013/07/tchad2010_rapport.pdf",Niger:"https://www.confemen.org/wp-content/uploads/2013/07/niger_rapport.pdf"}},Pe=(o,s)=>Ce[s]?.[o]||Ce[2019]?.[o]||"https://api-services.pasec.confemen.org/media/public/media/country-support/Rapport-Analytique.pdf",X=te(null),We=(o,s)=>{X.value={url:o,title:s}},Oe=()=>{X.value=null},$e=["#1A234B","#5F3594","#0EA5E9","#10B981","#F59E0B","#EF4444","#8B5CF6","#EC4899","#6366F1","#14B8A6","#F97316","#64748B"],f=o=>$e[o%$e.length],y=o=>E.value.indexOf(o),Xe=R(()=>[...x.value].sort((o,s)=>s.readingScore-o.readingScore)),Ke=R(()=>[...x.value].sort((o,s)=>s.mathScore-o.mathScore)),Ze=R(()=>[...x.value].sort((o,s)=>
1s.thresholdPct-o.thresholdPct)),xe=R(()=>[...x.value].sort((o,s)=>s.readingScore+s.mathScore-(o.readingScore+o.mathScore))),ge=P+w+Ba,K=R(()=>L+Math.max(1,x.value.length)*(ue+ve)-ve+pe),Ge=o=>L+o*(ue+ve),C=o=>Ge(o)+ue/2,oe=o=>o==="reading"||o==="math"?{min:400,max:650}:o==="threshold"?{min:0,max:100}:{min:-5,max:8},$=(o,s)=>s==="reading"?o.readingScore:s==="math"?o.mathScore:s==="threshold"?o.thresholdPct:parseFloat(o.genderGap),H=(o,s)=>s==="reading"?String(o.readingScore):s==="math"?String(o.mathScore):s==="threshold"?`${o.thresholdPct}%`:o.genderGap,Ae=(o,s)=>{const{min:i,max:t}=oe(o);return Math.max(2,(s-i)/(t-i)*w)},U=(o,s)=>P+w-Ae(o,s),Me=o=>{const{min:s,max:i}=oe(o);return[0,1,2,3,4].map(t=>{const a=s+t/4*(i-s),c=P+w-(a-s)/(i-s)*w;let S="";return o==="threshold"?S=`${Math.round(a)}%`:o==="gender"?S=a>=0?`+${a.toFixed(1)}`:a.toFixed(1):S=Math.round(a).toString(),{y:c,label:S,idx:t}})},fe=o=>x.value.map((s,i)=>`${C(i)},${U(o,$(s,o))}`).join(" "),Je=o=>{if(x.value.length===0)return"";const s=fe(o),i=C(0),t=C(x.value.length-1),a=P+w;return`${i},${a} ${s} ${t},${a}`},Qe=R(()=>{const o=x.value.reduce((a,c)=>a+(c.readingScore+c.mathScore),0);let s=0;const i=90,t=55;return x.value.map((a,c)=>{const S=a.readingScore+a.mathScore,Z=o>0?S/o*Math.PI*2:0,J=s,V=s+Z;s+=Z;const Q=i*Math.cos(J),ee=i*Math.sin(J),d=i*Math.cos(V),g=i*Math.sin(V),Y=t*Math.cos(V),m=t*Math.sin(V),k=t*Math.cos(J),G=t*Math.sin(J),D=Z>Math.PI?1:0;return{path:`M ${Q} ${ee} A ${i} ${i} 0 ${D} 1 ${d} ${g} L ${Y} ${m} A ${t} ${t} 0 ${D} 0 ${k} ${G} Z`,color:f(c),name:a.name,score:S}})}),et=(o,s)=>{const i=$(o,s),{min:t,max:a}=oe(s),S=(.15+Math.max(0,Math.min(1,(i-t)/(a-t)))*.45).toFixed(2);return`background: ${B(s)}${Math.round(parseFloat(S)*255).toString(16).padStart(2,"0")}; color: #0f172a;`},me=(o,s)=>o/s*Math.PI*2-Math.PI/2,Be=R(()=>{const o=u.value.length;return u.value.map((s,i)=>{const t=me(i,o),a=O+28,c=Math.cos(t);return{key:s,label:q(s),x2:+(re+O*c).toFixed(1),y2:+(ne+O*Math.sin(t)).toFixed(1),lx:+(re+a*c).toFixed(1),ly:+(ne+a*Math.sin(t)).toFixed(1),anchor:c>.3?"start":c<-.3?"end":"middle",angle:t}})}),tt=R(()=>[.25,.5,.75,1].map(o=>{const s=u.value.length,i=u.value.map((t,a)=>{const c=me(a,s);return`${(re+O*o*Math.cos(c)).toFixed(1)},${(ne+O*o*Math.sin(c)).toFixed(1)}`}).join(" ");return{factor:o,points:i}})),st=(o,s)=>{const{min:i,max:t}=oe(o);return Math.max(.05,Math.min(1,(s-i)/(t-i)))},be=(o,s)=>{const i=u.value.length,t=u.value[s],a=me(s,i),c=st(t,$(o,t));return{x:+(re+O*c*Math.cos(a)).toFixed(1),y:+(ne+O*c*Math.sin(a)).toFixed(1)}},ot=o=>u.value.map((s,i)=>{const t=be(o,i);return`${t.x},${t.y}`}).join(" "),Fe=(o,s,i)=>{const t=new Blob([o],{type:i}),a=URL.createObjectURL(t),c=document.createElement("a");c.href=a,c.download=s,document.body.appendChild(c),c.click(),document.body.removeChild(c),setTimeout(()=>URL.revokeObjectURL(a),1e3)},Re=()=>{const o=["Pays","Code"];return u.value.includes("reading")&&o.push("Lecture (pts)"),u.value.includes("math")&&o.push("Mathématiques (pts)"),u.value.includes("reading")&&u.value.includes("math")&&o.push("Score Total"),u.value.includes("threshold")&&o.push("Seuil Réussite (%)"),u.value.includes("gender")&&o.push("Écart Genre (pts)"),o},Ee=()=>xe.value.map(o=>{const s=[o.name,o.code.toUpperCase()];return u.value.includes("reading")&&s.push(String(o.readingScore)),u.value.includes("math")&&s.push(String(o.mathScore)),u.value.includes("reading")&&u.value.includes("math")&&s.push(String(o.readingScore+o.mathScore)),u.value.includes("threshold")&&s.push(String(o.thresholdPct)),u.value.includes("gender")&&s.push(o.genderGap),s}),at=()=>{const o="\uFEFF",s=Re(),i=Ee(),t=[s,...i].map(a=>a.map(c=>`"${c}"`).join(";")).join(`
2`);Fe(o+t,`PASEC_Comparaison_${j.value.toUpperCase()}.csv`,"text/csv;charset=utf-8;")},lt=()=>{const o=Re(),s=Ee(),i=o.map(c=>`<th style="background:#1A234B;color:white;font-weight:bold;padding:8px;border:1px solid #ddd">${c}</th>`).join(""),t=s.map(c=>`<tr>${c.map(S=>`<td style="padding:6px;border:1px solid #ddd">${S}</td>`).join("")}</tr>`).join(""),a=`<html xmlns:x="urn:schemas-microsoft-com:office:excel"><head><meta charset="UTF-8"/></head><body><h2>PASEC — Comparaison Multi-Pays · ${_.value}</h2><table><thead><tr>${i}</tr></thead><tbody>${t}</tbody></table></body></html>`;Fe(a,`PASEC_Comparaison_${j.value.toUpperCase()}.xls`,"application/vnd.ms-excel;charset=utf-8;")},rt=()=>{const o=xe.value,s=se.filter(m=>u.value.includes(m.key)),i=36,a=Math.max(900,(s.length+2)*160+i*2),c=90,S=Math.ceil(o.length/4)*160+50,Z=s.length*90+50,J=(o.length+2)*38+40,V=c+S+Z+J+i,Q=document.createElement("canvas"),ee=2;Q.width=a*ee,Q.height=V*ee;const d=Q.getContext("2d");if(!d)return;d.scale(ee,ee),d.fillStyle="#f8f6ff",d.fillRect(0,0,a,V),d.fillStyle="#1A234B",d.fillRect(0,0,a,c),d.fillStyle="#ffffff",d.font="bold 18px system-ui, sans-serif",d.fillText("PASEC — Rapport de Comparaison Multi-Pays",i,36),d.font="12px system-ui, sans-serif",d.fillStyle="#fbbf24",d.fillText(`Niveau : ${_.value}  ·  Évaluation : ${De.value}  ·  ${o.length} pays comparés  ·  Domaines : ${s.map(m=>m.label).join(", ")}`,i,62);let g=c+24;d.fillStyle="#0f172a",d.font="bold 14px system-ui, sans-serif",d.fillText("1. Fiches Synthétiques Comparatives",i,g),g+=16;const Y=(a-i*2-3*16)/Math.min(4,Math.max(1,o.length));o.forEach((m,k)=>{const G=k%4,D=Math.floor(k/4),A=i+G*(Y+16),N=g+D*150;d.fillStyle="#ffffff",d.beginPath(),d.roundRect(A,N,Y,138,12),d.fill(),d.strokeStyle="#e2e8f0",d.stroke(),d.fillStyle=f(y(m.code)),d.font="bold 11px system-ui, sans-serif",d.fillText(m.name,A+12,N+24),d.font="9px system-ui, sans-serif",d.fillStyle="#64748b",d.fillText(`Rang #${k+1}`,A+Y-55,N+24);let W=N+46;
2s.forEach(ae=>{d.fillStyle="#f8fafc",d.fillRect(A+8,W,Y-16,20),d.fillStyle=ae.color,d.font="bold 9px system-ui, sans-serif",d.fillText(ae.label,A+14,W+14),d.fillStyle="#0f172a",d.fillText(H(m,ae.key),A+Y-45,W+14),W+=22})}),g+=Math.ceil(o.length/4)*150+30,d.fillStyle="#0f172a",d.font="bold 14px system-ui, sans-serif",d.fillText("2. Graphiques Comparatifs",i,g),g+=20,s.forEach(m=>{d.fillStyle="#ffffff",d.fillRect(i,g,a-i*2,76),d.fillStyle=m.color,d.font="bold 11px system-ui, sans-serif",d.fillText(`${m.label} (${_.value})`,i+12,g+20);const k=[...o].sort((A,N)=>$(N,m.key)-$(A,m.key)),D=(a-i*2-24)/Math.max(1,k.length);k.forEach((A,N)=>{const W=i+12+N*D,ae=g+32,it=$(A,m.key),{min:Te,max:ct}=oe(m.key),ut=Math.max(.1,(it-Te)/(ct-Te)),je=Math.max(4,ut*28);d.fillStyle=f(y(A.code)),d.fillRect(W,ae+(28-je),Math.max(10,D-8),je),d.fillStyle="#334155",d.font="8px system-ui, sans-serif",d.fillText(A.code.toUpperCase(),W,g+68)}),g+=86}),g+=20,d.fillStyle="#0f172a",d.font="bold 14px system-ui, sans-serif",d.fillText("3. Tableau de Benchmark & Rang",i,g),g+=20,d.fillStyle="#1A234B",d.fillRect(i,g,a-i*2,32),d.fillStyle="#ffffff",d.font="bold 10px system-ui, sans-serif",d.fillText("Rang",i+10,g+20),d.fillText("Pays",i+60,g+20),s.forEach((m,k)=>{d.fillText(m.label,i+180+k*130,g+20)}),g+=32,o.forEach((m,k)=>{d.fillStyle=k%2===0?"#ffffff":"#f8fafc",d.fillRect(i,g,a-i*2,32),d.fillStyle="#0f172a",d.font="bold 10px system-ui, sans-serif",d.fillText(`#${k+1}`,i+10,g+20),d.fillText(m.name,i+60,g+20),s.forEach((G,D)=>{d.fillStyle=G.color,d.fillText(H(m,G.key),i+180+D*130,g+20)}),g+=32}),d.fillStyle="#94a3b8",d.font="9px system-ui, sans-serif",d.fillText(`Rapport exporté le ${new Date().toLocaleDateString("fr-FR")}  ·  PASEC (Programme d'Analyse des Systèmes Éducatifs de la CONFEMEN)`,i,V-14),Q.toBlob(m=>{if(!m)return;const k=URL.createObjectURL(m),G=document.createElement("a");G.href=k,G.download=`PASEC_Comparaison_Complete_${j.value.toUpperCase()}_${new Date().toISOString().slice(0,10)}.png`,document.body.appendChild(G),G.click(),document.body.removeChild(G),setTimeout(()=>URL.revokeObjectURL(k),1e3)},"image/png")},nt=()=>{rt()},dt=()=>window.print();return(o,s)=>{const i=xt("router-link");return r(),l("div",gt,[e("section",ft,[s[5]||(s[5]=e("div",{class:"absolute inset-0 bg-gradient-to-t from-[#1A234B] via-[#5F3594]/80 to-[#1A234B]/50 pointer-events-none"},null,-1)),e("div",mt,[e("div",bt,[s[0]||(s[0]=e("span",{class:"w-2 h-2 rounded-full bg-amber-400 animate-pulse"},null,-1)),v(" "+n(o.$t("advancedDataView.badge")),1)]),e("h1",vt,n(o.$t("advancedDataView.title")),1),e("p",yt,n(o.$t("advancedDataView.subtitle")),1),e("div",St,[ie(i,{to:{name:he("advanced-data-view")},class:"group bg-white/10 hover:bg-white/20 border border-white/20 hover:border-white/40 rounded-2xl p-5 transition-all duration-300 cursor-pointer backdrop-blur-md"},{default:ce(()=>[e("div",kt,[s[1]||(s[1]=e("div",{class:"w-10 h-10 rounded-xl bg-amber-400/20 flex items-center justify-center shrink-0"},[e("svg",{class:"w-5 h-5 text-amber-300",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})])],-1)),e("div",null,[e("p",_t,n(o.$t("advancedDataView.cards.indicators.title")),1),e("p",wt,n(o.$t("advancedDataView.cards.indicators.desc")),1)])])]),_:1},8,["to"]),ie(i,{to:{name:he("country-comparator")},class:"group bg-white/20 border-2 border-amber-400 rounded-2xl p-5 transition-all duration-300 cursor-pointer backdrop-blur-md shadow-lg shadow-amber-400/10"},{default:ce(()=>[e("div",Ct,[s[2]||(s[2]=e("div",{class:"w-10 h-10 rounded-xl bg-amber-400 text-slate-900 flex items-center justify-center shrink-0 font-bold shadow-md"},[e("svg",{class:"w-5 h-5 text-slate-900",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2.5"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 
20 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])],-1)),e("div",null,[e("p",Pt,n(o.$t("advancedDataView.cards.compare.title")),1),e("p",$t,n(o.$t("advancedDataView.cards.compare.desc")),1)])])]),_:1},8,["to"]),ie(i,{to:{name:he("data-portal")},class:"group bg-white/10 hover:bg-white/20 border border-white/20 hover:border-white/40 rounded-2xl p-5 transition-all duration-300 cursor-pointer backdrop-blur-md"},{default:ce(()=>[e("div",Gt,[s[3]||(s[3]=e("div",{class:"w-10 h-10 rounded-xl bg-amber-400/20 flex items-center justify-center shrink-0"},[e("svg",{class:"w-5 h-5 text-amber-300",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})])],-1)),e("div",null,[e("p",At,n(o.$t("advancedDataView.cards.download.title")),1),e("p",Mt,n(o.$t("advancedDataView.cards.download.desc")),1)])])]),_:1},8,["to"])]),e("div",Bt,[s[4]||(s[4]=e("svg",{class:"w-4 h-4 text-amber-300 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"})],-1)),v(" "+n(o.$t("advancedDataView.footerTagline")),1)])])]),e("div",Ft,[e("div",Rt,[e("div",Et,[e("div",Tt,[e("div",null,[s[6]||(s[6]=e("h3",{class:"text-base font-black text-slate-900"},"Sélection des Pays",-1)),e("p",jt,n(E.value.length)+" / "+n(de.value.length)+" pays sélectionnés",1)]),e("div",{class:"flex items-center gap-2"},[e("button",{onClick:we,class:"px-3.5 py-2 bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold text-xs rounded-xl transition-all cursor-pointer"},"Tout sélectionner"),e("button",{onClick:Ye,class:"px-3.5 py-2 bg-slate-100 hover:bg-slate-200 text-slate-500 font-bold text-xs rounded-xl transition-all cursor-pointer"},"Réinitialiser")])]),e("div",Dt,[(r(!0),l(p,null,h(de.value,t=>(r(),l("button",{key:t.code,onClick:a=>_e(t.code),class:z(["px-4 py-2.5 rounded-2xl text-xs font-bold border-2 transition-all duration-200 cursor-pointer flex items-center gap-2",E.value.includes(t.code)?"border-[#1A234B] bg-[#1A234B] text-white shadow-sm":"border-slate-200 bg-slate-50 text-slate-600 hover:border-[#1A234B] hover:text-[#1A234B]"])},[e("span",null,n(t.name),1),E.value.includes(t.code)?(r(),l("span",Lt)):T("",!0)],10,zt))),128))])]),e("div",Vt,[s[7]||(s[7]=e("h3",{class:"text-base font-black text-slate-900 mb-1"},"Niveau Scolaire",-1)),s[8]||(s[8]=e("p",{class:"text-xs text-slate-500 mb-3"},"Choisissez le niveau d'évaluation",-1)),e("div",Nt,[(r(),l(p,null,h(ye,t=>e("button",{key:t.key,onClick:a=>j.value=t.key,class:z(["px-5 py-3 rounded-2xl text-xs font-bold border-2 transition-all duration-200 cursor-pointer text-left",j.value===t.key?"bg-[#5F3594] border-[#5F3594] text-white shadow-sm":"bg-slate-50 border-slate-200 text-slate-600 hover:border-[#5F3594] hover:text-[#5F3594]"])},[e("div",qt,n(t.label),1),e("div",Ht,n(t.sub),1)],10,It)),64))])]),e("div",Ut,[s[9]||(s[9]=e("h3",{class:"text-base font-black text-slate-900 mb-1"},"Année d'Évaluation",-1)),s[10]||(s[10]=e("p",{class:"text-xs text-slate-500 mb-3"},"Sélectionnez le cycle d'évaluation PASEC",-1)),e("div",Yt,[(r(),l(p,null,h(Se,t=>e("button",{key:t.key,onClick:a=>M.value=t.key,class:z(["px-5 py-3 rounded-2xl text-xs font-bold border-2 transition-all duration-200 cursor-pointer text-left",M.value===t.key?"bg-[#1A234B] border-[#1A234B] text-white shadow-sm":"bg-slate-50 border-slate-200 text-slate-600 hover:border-[#1A234B] hover:text-[#1A234B]"])},[e("div",Ot,n(t.label),1),e("div",Xt,n(t.sub),1)],10,Wt)),64))])]),e("div",Kt,[s[11]||(s[11]=e("h3",{class:"text-base font-black text-slate-900 mb-1"},"Domaines à Comparer",-1)),s[12]||(s[12]=e("p",{class:"text-xs text-slate-500 mb-3"},"Activez les indicateurs à afficher",-1)),e("div",Zt,[(r(),l(p,null,h(se,t=>e("button",{key:t.key,onClick:a=>ze(t.key),class:"px-5 py-3 rounded-2xl text-xs font-bold border-2 transition-all duration-200 cursor-pointer text-left",style:b(u.value.includes(t.key)?`background:${t.color};border-color:${t.color};color:white`:"background:#f8fafc;border-color:#e2e8f0;color:#475569")},[e("div",Qt,n(t.label),1),e("div",es,n(t.sub),1)],12,Jt)),64))])]),e("div",ts,[s[13]||(s[13]=e("h3",{class:"text-base font-black text-slate-900 mb-1"},"Type de Visualisation",-1)),s[14]||(s[14]=e("p",{class:"text-xs text-slate-500 mb-3"},"Choisissez le format du graphique comparatif (10 modes disponibles)",-1)),e("div",ss,[(r(),l(p,null,h(ke,t=>e("button",{key:t.key,onClick:a=>F.value=t.key,class:z(["px-4 py-2.5 rounded-2xl text-xs font-bold border-2 transition-all duration-200 cursor-pointer",F.value===t.key?"bg-[#0EA5E9] border-[#0EA5E9] text-white shadow-sm":"bg-slate-50 border-slate-200 text-slate-600 hover:border-[#0EA5E9] hover:text-[#0EA5E9]"])},[e("span",null,n(t.label),1)],10,os)),64))])]),e("div",{class:"p-6 sm:p-8 bg-slate-50/60"},[e("div",{class:"flex flex-wrap items-center justify-between gap-4"},[s[15]||(s[15]=e("div",null,[e("h3",{class:"text-base font-black text-slate-900"},"Exporter les Données"),e("p",{class:"text-xs text-slate-500 mt-0.5"},"Téléchargez la comparaison dans le format souhaité")],-1)),e("div",{class:"flex flex-wrap gap-2"},[e("button",{onClick:dt,class:"px-4 py-2.5 bg-[#1A234B] hover:bg-[#2A376C] text-white font-bold text-xs rounded-xl transition-all cursor-pointer"},"Imprimer / PDF"),e("button",{onClick:at,class:"px-4 py-2.5 bg-emerald-600 hover:bg-emerald-700 text-white font-bold text-xs rounded-xl transition-all cursor-pointer"},"Télécharger CSV"),e("button",{onClick:lt,class:"px-4 py-2.5 bg-teal-600 hover:bg-teal-700 text-white font-bold text-xs rounded-xl transition-all cursor-pointer"},"Télécharger Excel"),e("button",{onClick:nt,class:"px-4 py-2.5 bg-indigo-600 hover:bg-indigo-700 text-white font-bold text-xs rounded-xl transition-all cursor-pointer"},"Télécharger PNG")])])])]),x.value.length===0?(r(),l("div",as,[s[16]||(s[16]=e("h3",{class:"text-base font-bold text-slate-800"},"Aucun pays sélectionné",-1)),s[17]||(s[17]=e("p",{class:"text-xs text-slate-500 mt-1 mb-4"},"Sélectionnez au moins 2 pays pour lancer la comparaison.",-1)),e("button",{onClick:we,class:"px-5 py-2.5 bg-[#1A234B] text-white font-bold text-xs rounded-xl hover:bg-[#2A376C] transition-colors cursor-pointer"},"Sélectionner tous les pays")])):u.value.length===0?(r(),l("div",ls,[s[
218]||(s[18]=e("h3",{class:"text-base font-bold text-slate-800"},"Aucun domaine sélectionné",-1)),s[19]||(s[19]=e("p",{class:"text-xs text-slate-500 mt-1 mb-4"},"Activez au moins un domaine à comparer.",-1)),e("button",{onClick:Le,class:"px-5 py-2.5 bg-[#5F3594] text-white font-bold text-xs rounded-xl hover:opacity-90 transition-colors cursor-pointer"},"Activer tous les domaines")])):(r(),l("div",rs,[e("div",ns,[e("div",ds,[s[21]||(s[21]=e("h3",{class:"text-lg font-black text-slate-900"},"Comparaison Visuelle Multi-Pays",-1)),e("p",is,[s[20]||(s[20]=v("Niveau ",-1)),e("strong",null,n(_.value),1),v(" · "+n(x.value.length)+" pays · Mode : "+n(ke.find(t=>t.key===F.value)?.label),1)])]),F.value==="horizontal"?(r(),l(p,{key:0},[u.value.includes("reading")?(r(),l("div",cs,[e("div",us,[e("span",ps,[s[22]||(s[22]=e("span",{class:"w-3 h-3 rounded inline-block",style:{background:"#3B82F6"}},null,-1)),v("Lecture · "+n(_.value),1)]),s[23]||(s[23]=e("span",{class:"text-amber-600 font-semibold"},"Moy. PASEC = 500 pts",-1))]),e("div",hs,[(r(!0),l(p,null,h(Xe.value,t=>(r(),l("div",{key:"r-"+t.code,class:"flex items-center gap-3 text-xs"},[e("span",xs,[e("span",{class:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:b(`background:${f(y(t.code))}`)},null,4),v(" "+n(t.name),1)]),e("div",gs,[s[24]||(s[24]=e("div",{class:"absolute top-0 bottom-0 left-[76.9%] border-r-2 border-dashed border-amber-400 z-10 opacity-70"},null,-1)),e("div",{class:"h-full rounded-full transition-all duration-700 flex items-center justify-end pr-3 text-[10px] font-bold text-white",style:b(`width:${t.readingScore/650*100}%;background:${f(y(t.code))}`)},n(t.readingScore)+" pts",5)])]))),128))])])):T("",!0),u.value.includes("math")?(r(),l("div",fs,[e("div",ms,[e("span",bs,[s[25]||(s[25]=e("span",{class:"w-3 h-3 rounded inline-block",style:{background:"#10B981"}},null,-1)),v("Mathématiques · "+n(_.value),1)]),s[26]||(s[26]=e("span",{class:"text-amber-600 font-semibold"},"Moy. PASEC = 500 pts",-1))]),e("div",vs,[(r(!0),l(p,null,h(Ke.value,t=>(r(),l("div",{key:"m-"+t.code,class:"flex items-center gap-3 text-xs"},[e("span",ys,[e("span",{class:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:b(`background:${f(y(t.code))}`)},null,4),v(" "+n(t.name),1)]),e("div",Ss,[s[27]||(s[27]=e("div",{class:"absolute top-0 bottom-0 left-[76.9%] border-r-2 border-dashed border-amber-400 z-10 opacity-70"},null,-1)),e("div",{class:"h-full rounded-full transition-all duration-700 flex items-center justify-end pr-3 text-[10px] font-bold text-white",style:b(`width:${t.mathScore/650*100}%;background:${f(y(t.code))}`)},n(t.mathScore)+" pts",5)])]))),128))])])):T("",!0),u.value.includes("threshold")?(r(),l("div",ks,[e("div",_s,[e("span",ws,[s[28]||(s[28]=e("span",{class:"w-3 h-3 rounded inline-block",style:{background:"#F59E0B"}},null,-1)),v("Seuil de Réussite · "+n(_.value),1)]),s[29]||(s[29]=e("span",{class:"text-slate-400 font-semibold"},"% d'élèves au niveau minimal",-1))]),e("div",Cs,[(r(!0),l(p,null,h(Ze.value,t=>(r(),l("div",{key:"t-"+t.code,class:"flex items-center gap-3 text-xs"},[e("span",Ps,[e("span",{class:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:b(`background:${f(y(t.code))}`)},null,4),v(" "+n(t.name),1)]),e("div",$s,[e("div",{class:"h-full rounded-full transition-all duration-700 flex items-center justify-end pr-3 text-[10px] font-bold text-white",style:b(`width:${t.thresholdPct}%;background:${f(y(t.code))}`)},n(t.thresholdPct)+"%",5)])]))),128))])])):T("",!0),u.value.includes("gender")?(r(),l("div",Gs,[e("div",As,[e("span",Ms,[s[30]||(s[30]=e("span",{class:"w-3 h-3 rounded inline-block",style:{background:"#8B5CF6"}},null,-1)),v("Écart de Genre (G/F) · "+n(_.value),1)]),s[31]||(s[31]=e("span",{class:"text-slate-400 font-semibold"},"Positif = avantage garçons",-1))]),e("div",Bs,[(r(!0),l(p,null,h(x.value,t=>(r(),l("div",{key:"g-"+t.code,class:"flex items-center gap-3 text-xs"},[e("span",Fs,[e("span",{class:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:b(`background:${f(y(t.code))}`)},null,4),v(" "+n(t.name),1)]),e("div",Rs,[e("div",Es,[s[32]||(s[32]=e("div",{class:"absolute top-0 bottom-0 left-1/2 border-r-2 border-dashed border-slate-400 z-10 opacity-60"},null,-1)),e("div",{class:"absolute top-0 h-full rounded-full transition-all duration-700",style:b(parseFloat(t.genderGap)>=0?`left:50%;width:${Math.min(Math.abs(parseFloat(t.genderGap))*6,50)}%;background:${f(y(t.code))}`:`right:50%;width:${Math.min(Math.abs(parseFloat(t.genderGap))*6,50)}%;background:#EF4444`)},null,4)]),e("span",{class:z(["font-bold text-xs w-16 text-right",parseFloat(t.genderGap)>=0?"text-indigo-700":"text-red-600"])},n(t.genderGap)+" pts",3)])]))),128))])])):T("",!0)],64)):F.value==="vertical"?(r(!0),l(p,{key:1},h(u.value,t=>
2(r(),l("div",{key:"vert-"+t,class:"space-y-3"},[e("div",Ts,[e("span",{class:"w-3 h-3 rounded inline-block",style:b(`background:${B(t)}`)},null,4),v(" "+n(q(t))+" · "+n(_.value),1)]),e("div",js,[(r(),l("svg",{viewBox:`0 0 ${K.value} ${ge}`,class:"w-full",style:{"min-width":"280px"},preserveAspectRatio:"xMinYMin meet"},[(r(!0),l(p,null,h(Me(t),a=>(r(),l("g",{key:`yt-${t}-${a.idx}`},[e("line",{x1:L-4,y1:a.y,x2:K.value-pe,y2:a.y,stroke:"#e2e8f0","stroke-width":"1","stroke-dasharray":"4,3"},null,8,zs),e("text",{x:L-8,y:a.y+4,"text-anchor":"end","font-size":"9",fill:"#94a3b8"},n(a.label),9,Ls)]))),128)),(r(!0),l(p,null,h(x.value,(a,c)=>(r(),l("g",{key:`vb-${t}-${a.code}`},[e("rect",{x:Ge(c),y:U(t,$(a,t)),width:ue,height:Ae(t,$(a,t)),fill:f(y(a.code)),rx:"4",ry:"4"},null,8,Vs),e("text",{x:C(c),y:U(t,$(a,t))-5,"text-anchor":"middle","font-size":"9","font-weight":"bold",fill:f(y(a.code))},n(H(a,t)),9,Ns),e("text",{x:C(c),y:P+w+14,"text-anchor":"end","font-size":"9",fill:"#475569",transform:`rotate(-40 ${C(c)} ${P+w+14})`},n(a.name),9,Is)]))),128)),e("line",{x1:L-5,y1:P+w,x2:K.value-pe+4,y2:P+w,stroke:"#94a3b8","stroke-width":"1.5"},null,8,qs),e("line",{x1:L-5,y1:P,x2:L-5,y2:P+w,stroke:"#94a3b8","stroke-width":"1.5"},null,8,Hs)],8,Ds))])]))),128)):F.value==="radar"?(r(),l(p,{key:2},[u.value.length>=2?(r(),l("div",Us,[(r(),l("svg",Ys,[(r(!0),l(p,null,h(tt.value,t=>(r(),l("polygon",{key:`grid-${t.factor}`,points:t.points,fill:"none",stroke:"#e2e8f0","stroke-width":"1"},null,8,Ws))),128)),(r(!0),l(p,null,h(Be.value,t=>(r(),l("line",{key:`ax-${t.key}`,x1:re,y1:ne,x2:t.x2,y2:t.y2,stroke:"#cbd5e1","stroke-width":"1.5"},null,8,Os))),128)),(r(!0),l(p,null,h(Be.value,t=>(r(),l("text",{key:`axl-${t.key}`,x:t.lx,y:t.ly,"text-anchor":t.anchor,"font-size":"11","font-weight":"bold",fill:"#334155","dominant-baseline":"middle"},n(t.label),9,Xs))),128)),(r(!0),l(p,null,h(x.value,(t,a)=>(r(),l("polygon",{key:`poly-${t.code}`,points:ot(t),fill:`${f(a)}3A`,stroke:f(a),"stroke-width":"2","stroke-linejoin":"round"},null,8,Ks))),128)),(r(!0),l(p,null,h(x.value,(t,a)=>(r(),l(p,{key:`dots-${t.code}`},[(r(!0),l(p,null,h(u.value,(c,S)=>(r(),l("circle",{key:`dot-${t.code}-${c}`,cx:be(t,S).x,cy:be(t,S).y,r:"4",fill:f(a),stroke:"white","stroke-width":"1.5"},null,8,Zs))),128))],64))),128))])),e("div",Js,[(r(!0),l(p,null,h(x.value,(t,a)=>(r(),l("div",{key:`leg-${t.code}`,class:"flex items-center gap-2 text-xs font-bold text-slate-700"},[e("span",{class:"w-5 h-2 rounded-full inline-block",style:b(`background:${f(a)}`)},null,4),v(" "+n(t.name),1)]))),128))])])):(r(),l("div",Qs,"Le diagramme radar nécessite au moins 2 domaines sélectionnés."))],64)):F.value==="line"?(r(!0),l(p,{key:3},h(u.value,t=>(r(),l("div",{key:"line-"+t,class:"space-y-3"},[e("div",eo,[e("span",{class:"w-3 h-3 rounded inline-block",style:b(`background:${B(t)}`)},null,4),v(" Courbe Comparative · "+n(q(t))+" · "+n(_.value),1)]),e("div",to,[(r(),l("svg",{viewBox:`0 0 ${K.value} ${ge}`,class:"w-full",style:{"min-width":"280px"},preserveAspectRatio:"xMinYMin meet"},[(r(!0),l(p,null,h(Me(t),a=>(r(),l("g",{key:`yt-l-${t}-${a.idx}`},[e("line",{x1:L-4,y1:a.y,x2:K.value-pe,y2:a.y,stroke:"#e2e8f0","stroke-width":"1","stroke-dasharray":"4,3"},null,8,oo),e("text",{x:L-8,y:a.y+4,"text-anchor":"end","font-size":"9",fill:"#94a3b8"},n(a.label),9,ao)]))),128)),e("polyline",{points:fe(t),fill:"none",stroke:B(t),"stroke-width":"2.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,lo),(r(!0),l(p,null,h(x.value,(a,c)=>(r(),l("g",{key:`lp-${t}-${a.code}`},[e("circle",{cx:C(c),cy:U(t,$(a,t)),r:"5",fill:f(y(a.code)),stroke:"white","stroke-width":"2"},null,8,ro),e("text",{x:C(c),y:U(t,$(a,t))-9,"text-anchor":"middle","font-size":"9","font-weight":"bold",fill:f(y(a.code))},n(H(a,t)),9,no),e("text",{x:C(c),y:P+w+14,"text-anchor":"end","font-size":"9",fill:"#475569",transform:`rotate(-40 ${C(c)} ${P+w+14})`},n(a.name),9,io)]))),128))],8,so))])]))),128)):F.value==="area"?(r(!0),l(p,{key:4},h(u.value,t=>(r(),l("div",{key:"area-"+t,class:"space-y-3"},[e("div",co,[e("span",{class:"w-3 h-3 rounded inline-block",style:b(`background:${B(t)}`)},null,4),v(" Surface Remplie · "+n(q(t))+" · "+n(_.value),1)]),e("div",uo,[(r(),l("svg",{viewBox:`0 0 ${K.value} ${ge}`,class:"w-full",style:{"min-width":"280px"},preserveAspectRatio:"xMinYMin meet"},[e("polygon",{points:Je(t),fill:`${B(t)}25`},null,8,ho),e("polyline",{points:fe(t),fill:"none",stroke:B(t),"stroke-width":"2.5","stroke-linejoin":"round"},null,8,xo),(r(!0),l(p,null,h(x.value,(a,c)=>(r(),l("g",{key:`ap-${t}-${a.code}`},[e("circle",{cx:C(c),cy:U(t,$(a,t)),r:"5",fill:B(t),stroke:"white","stroke-width":"2"},null,8,go),e("text",{x:C(c),y:U(t,$(a,t))-9,"text-anchor":"middle","font-size":"9","font-weight":"bold",fill:"#1e293b"},n(H(a,t)),9,fo),e("text",{x:C(c),y:P+w+14,"text-anchor":"end","font-size":"9",fill:"#475569",transform:`rotate(-40 ${C(c)} ${P+w+14})`},n(a.name),9,mo)]))),128))],8,po))])]))),128)):F.value==="donut"?(r(
2),l("div",bo,[(r(),l("svg",vo,[e("g",yo,[(r(!0),l(p,null,h(Qe.value,(t,a)=>(r(),l("path",{key:`dn-${a}`,d:t.path,fill:t.color,opacity:"0.9",class:"hover:opacity-100 transition-opacity"},[e("title",null,n(t.name)+": "+n(t.score)+" pts",1)],8,So))),128)),s[33]||(s[33]=e("text",{"text-anchor":"middle",dy:"-4","font-size":"14","font-weight":"800",fill:"#1A234B"},"PASEC",-1)),e("text",ko,n(_.value),1)])])),e("div",_o,[(r(!0),l(p,null,h(x.value,(t,a)=>(r(),l("div",{key:`dleg-${t.code}`,class:"flex items-center gap-2"},[e("span",{class:"w-3 h-3 rounded-sm flex-shrink-0",style:b(`background:${f(a)}`)},null,4),e("span",wo,n(t.name),1),e("span",Co,n(t.readingScore+t.mathScore)+" pts",1)]))),128))])])):F.value==="grouped"?(r(),l("div",Po,[e("div",$o,[s[34]||(s[34]=e("span",null,"Comparaison Côte à Côte par Domaines",-1)),e("div",Go,[(r(!0),l(p,null,h(u.value,t=>(r(),l("div",{key:`gleg-${t}`,class:"flex items-center gap-1.5 text-[11px]"},[e("span",{class:"w-3 h-3 rounded-xs",style:b(`background:${B(t)}`)},null,4),e("span",null,n(q(t)),1)]))),128))])]),e("div",Ao,[(r(!0),l(p,null,h(x.value,(t,a)=>(r(),l("div",{key:`grp-${t.code}`,class:"space-y-2"},[e("div",Mo,[e("span",{class:"w-2.5 h-2.5 rounded-full",style:b(`background:${f(a)}`)},null,4),e("span",null,n(t.name),1)]),e("div",Bo,[(r(!0),l(p,null,h(u.value,c=>(r(),l("div",{key:`grpd-${t.code}-${c}`,class:"p-2.5 rounded-xl border flex items-center justify-between text-xs",style:b(`background:${B(c)}10; border-color:${B(c)}30`)},[e("span",{class:"font-semibold",style:b(`color:${B(c)}`)},n(q(c)),5),e("span",Fo,n(H(t,c)),1)],4))),128))])]))),128))])])):F.value==="scatter"?(r(),l("div",Ro,[s[39]||(s[39]=e("div",{class:"flex justify-between items-center text-xs font-extrabold text-slate-700"},[e("span",null,"Corrélation : Score Lecture (Axe X) vs Score Maths (Axe Y)"),e("span",{class:"text-slate-400"},"Position relative des pays")],-1)),e("div",Eo,[(r(),l("svg",To,[s[35]||(s[35]=e("line",{x1:"60",y1:"20",x2:"60",y2:"250",stroke:"#cbd5e1","stroke-width":"1.5"},null,-1)),s[36]||(s[36]=e("line",{x1:"60",y1:"250",x2:"500",y2:"250",stroke:"#cbd5e1","stroke-width":"1.5"},null,-1)),s[37]||(s[37]=e("text",{x:"30",y:"140","text-anchor":"middle","font-size":"9",fill:"#64748b",transform:"rotate(-90,30,140)"},"Score Maths (pts)",-1)),s[38]||(s[38]=e("text",{x:"280",y:"285","text-anchor":"middle","font-size":"9",fill:"#64748b"},"Score Lecture (pts)",-1)),(r(!0),l(p,null,h(x.value,t=>(r(),l("circle",{key:`scat-${t.code}`,cx:60+(t.readingScore-400)/250*430,cy:250-(t.mathScore-400)/250*220,r:"9",fill:f(y(t.code)),"fill-opacity":"0.85",stroke:"white","stroke-width":"2"},null,8,jo))),128)),(r(!0),l(p,null,h(x.value,t=>(r(),l("text",{key:`scatl-${t.code}`,x:60+(t.readingScore-400)/250*430,y:250-(t.mathScore-400)/250*220-13,"text-anchor":"middle","font-size":"9",fill:"#334155","font-weight":"bold"},n(t.name),9,Do))),128))]))])])):F.value==="heatmap"?(r(),l("div",zo,[s[41]||(s[41]=e("div",{class:"flex justify-between items-center text-xs font-extrabold text-slate-700"},[e("span",null,"Matrice d'Intensité (Pays × Domaines)"),e("span",{class:"text-slate-400"},"Intensité de couleur = niveau de performance")],-1)),e("div",Lo,[e("table",Vo,[e("thead",null,[e("tr",No,[s[40]||(s[40]=e("th",{class:"p-3"},"Pays",-1)),(r(!0),l(p,null,h(u.value,t=>(r(),l("th",{key:`hth-${t}`,class:"p-3 text-center"},n(q(t)),1))),128))])]),e("tbody",null,[(r(!0),l(p,null,h(x.value,t=>(r(),l("tr",{key:`htr-${t.code}`,class:"border-b border-slate-100"},[e("td",Io,[e("span",null,n(t.name),1)]),(r(!0),l(p,null,h(u.value,a=>(r(),l("td",{key:`htc-${t.code}-${a}`,class:"p-3 text-center font-bold text-slate-900",style:b(et(t,a))},n(H(t,a)),5))),128))]))),128))])])])])):(r(),l("div",qo," Mode tableau seul activé — Les graphiques sont masqués. Consultez le tableau de benchmark ci-dessous. "))]),e("div",null,[e("div",Ho,[e("div",null,[s[43]||(s[43]=e("h3",{class:"text-lg font-black text-slate-900"},"Fiches Synthétiques Comparatives",-1)),e("p",Uo,[s[42]||(s[42]=v("Niveau : ",-1)),e("strong",null,n(_.value),1),v(" · "+n(u.value.length)+" domaine(s) affiché(s)",1)])]),e("span",Yo,n(x.value.length)+" pays",1)]),e("div",Wo,[(r(!0),l(p,null,h(x.value,(t,a)=>(r(),l("div",{key:t.code,class:"bg-white rounded-3xl p-6 border-2 shadow-sm space-y-5 transition-all hover:shadow-md flex flex-col justify-between",style:b(`border-color: ${f(a)}22`)},[e("div",Oo,[e("div",Xo,[e("div",Ko,[e("button",{onClick:c=>_e(t.code),class:"text-slate-300 hover:text-red-500 text-xs font-bold cursor-pointer",title:"Retirer"},"✕",8,Zo)]),e("h4",Jo,n(t.name),1),e("span",Qo,n(_.value),1)]),e("div",ea,[u.value.includes("reading")?(r(),l("div",ta,[s[44]||(s[44]=e("span",{class:"font-semibold text-blue-700"},"Lecture",-1)),e("span",sa,n(t.readingScore)+" pts",1)])):T("",!0),u.value.includes("math")?(r(),l("div",oa,[s[45]||(s[45]=e("span",{class:"font-semibold text-emerald-700"},"Mathématiques",-1)),e("span",aa,n(t.mathScore)+" pts",1)])):T("",!0),u.value.includes("threshold")?(r(),l("div",la,[s[46]||(s[46]=e("span",{class:"font-semibold text-amber-700"},"Seuil suffisant",-1)),e("span",{class:z(["font-black text-xs px-2 py-0.5 rounded",t.thresholdPct>=50?"bg-emerald-100 text-emerald-800":"bg-amber-100 text-amber-800"])},n(t.thresholdPct)+"%",3)])):T("",!0),u.value.includes("gender")?(r(),l("div",ra,[s[47]||
2(s[47]=e("span",{class:"font-semibold text-purple-700"},"Écart Genre (G/F)",-1)),e("span",na,n(t.genderGap)+" pts",1)])):T("",!0)])]),e("div",da,[e("button",{onClick:c=>We(Pe(t.name,M.value),"Rapport National PASEC "+M.value+" — "+t.name),class:"flex-1 py-2 px-2.5 bg-indigo-50 hover:bg-indigo-100 text-indigo-700 font-bold text-[11px] rounded-xl transition-colors shadow-xs flex items-center justify-center gap-1 cursor-pointer",title:"Aperçu direct du rapport PASEC "+M.value+" pour "+t.name},[...s[48]||(s[48]=[e("span",null,"Aperçu",-1)])],8,ia),e("a",{href:Pe(t.name,M.value),target:"_blank",download:"",class:"py-2 px-2.5 bg-[#1A234B] hover:bg-[#2A376C] text-white font-bold text-[11px] rounded-xl text-center transition-colors shadow-xs",title:"Télécharger le rapport PASEC "+M.value+" pour "+t.name},[...s[49]||(s[49]=[e("span",null,"Télécharger",-1)])],8,ca),ie(i,{to:le(I)==="en"?`/${le(I)}/digital-library`:le(I)==="pt"?`/${le(I)}/biblioteca-digital`:`/${le(I)||"fr"}/bibliotheque-numerique`,class:"py-2 px-2.5 bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold text-[11px] rounded-xl transition-colors",title:o.$t("menu.library.title")},{default:ce(()=>[v(n(o.$t("menu.library.title")),1)]),_:1},8,["to","title"])])],4))),128))])]),e("div",ua,[e("div",pa,[e("div",null,[s[50]||(s[50]=e("h3",{class:"text-lg font-black text-slate-900"},"Tableau Synthétique",-1)),e("p",ha,"Benchmark multi-pays · "+n(_.value)+" ("+n(M.value)+")",1)]),e("span",xa,n(x.value.length)+" pays comparés",1)]),e("div",ga,[e("table",fa,[s[51]||(s[51]=e("thead",null,[e("tr",{class:"bg-slate-50 border-b border-slate-200 text-slate-600 font-extrabold uppercase tracking-wider"},[e("th",{class:"py-3.5 px-4"},"Pays"),e("th",{class:"py-3.5 px-4"},"Évaluation"),e("th",{class:"py-3.5 px-4"},"Score Moyen"),e("th",{class:"py-3.5 px-4"},"Seuil Suffisant (%)"),e("th",{class:"py-3.5 px-4"},"Écart Garçons/Filles"),e("th",{class:"py-3.5 px-4 text-right"},"Statut")])],-1)),e("tbody",ma,[(r(!0),l(p,null,h(xe.value,t=>(r(),l("tr",{key:"bk-"+t.code,class:"hover:bg-slate-50/80 transition-colors"},[e("td",ba,[e("span",va,[e("span",{class:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:b(`background:${f(y(t.code))}`)},null,4),v(" "+n(t.name),1)])]),e("td",ya,n(M.value),1),e("td",Sa,n(t.readingScore)+" pts",1),e("td",{class:z(["py-3.5 px-4 font-bold",t.thresholdPct>=50?"text-emerald-700":"text-amber-700"])},n(t.thresholdPct)+"%",3),e("td",{class:z(["py-3.5 px-4 font-semibold",parseFloat(t.genderGap)>=0?"text-indigo-700":"text-amber-700"])},n(t.genderGap)+" pts",3),e("td",ka,[e("span",{class:z(["px-2.5 py-1 rounded-lg font-extrabold text-[10px] uppercase",t.readingScore>=500?"bg-emerald-100 text-emerald-800":"bg-amber-100 text-amber-800"])},n(t.readingScore>=500?"Au-dessus moyenne":"En-dessous moyenne"),3)])]))),128))])])])])])),X.value?(r(),l("div",_a,[e("div",wa,[e("div",Ca,[e("div",null,[e("h3",Pa,n(X.value.title),1),s[52]||(s[52]=e("p",{class:"text-xs text-slate-300"},"Consultation en ligne du document officiel",-1))]),e("div",$a,[e("a",{href:X.value.url,target:"_blank",download:"",class:"px-3.5 py-1.5 bg-emerald-500 hover:bg-emerald-600 text-white font-bold text-xs rounded-xl transition-colors flex items-center gap-1"},[...s[53]||(s[53]=[e("span",null,"Télécharger",-1)])],8,Ga),e("button",{onClick:Oe,class:"w-8 h-8 rounded-full bg-white/10 hover:bg-white/20 text-white font-bold text-base flex items-center justify-center transition-colors cursor-pointer",title:"Fermer"}," ✕ ")])]),e("div",Aa,[e("iframe",{src:X.value.url,class:"w-full h-full border-0",title:"Aperçu du document"},null,8,Ma)])])])):T("",!0)])])}}});export{Ta as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.