1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3447,1823],{24697:function(e,a,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/timesup",function(){return s(90251)}])},90251:function(e,a,s){"use strict";s.r(a);var t=s(52676),r=s(44428),n=s.n(r),i=s(75271),o=s(12263),d=s.n(o),l=s(3671),c=s(74739),m=s(72681),x=s(1156);const p=["Barack Obama","Michael Jackson","Albert Einstein","Mona Lisa","Napol\xe9on","Mozart","Marie Curie","Nelson Mandela","Shakespeare","Picasso","Elvis Presley","Marilyn Monroe","Gandhi","Cleopatra","Titanic","Star Wars","Le Seigneur des Anneaux","Harry Potter","Matrix","James Bond","Batman","Spider-Man","Jurassic Park","Avengers","Game of Thrones","Friends","Breaking Bad","The Office","Stranger Things","Tour Eiffel","Statue de la Libert\xe9","Pyramides","Big Ben","Colis\xe9e","Pizza","Hamburger","Sushi","Croissant","Tacos","Guitare","Piano","Batterie","Violon","Saxophone","Football","Basketball","Tennis","Golf","Natation","\xc9l\xe9phant","Girafe","Lion","Tigre","Panda","Dauphin","Requin","Baleine","Pingouin","Flamant rose","M\xe9decin","Pompier","Astronaute","Professeur","Chef cuisinier","Pilote","Policier","Avocat","Artiste","Musicien","Se brosser les dents","Faire du v\xe9lo","Nager","Danser","Chanter","Dormir","Rire","Pleurer","Courir","Sauter","Coca-Cola","McDonald's","Nike","Apple","Google","Amazon","Facebook","Twitter","Instagram","YouTube","Paris","New York","Tokyo","Londres","Rome","France","\xc9tats-Unis","Japon","Italie","Espagne","Arc-en-ciel","Orage","Neige","Soleil","Pluie","Montagne","Oc\xe9an","For\xeat","D\xe9sert","Volcan"],b=["Description libre","Un seul mot","Mime uniquement"];a.default=()=>{const[e,a]=(0,i.useState)("setup"),[s,r]=(0,i.useState)(null),[o,g]=(0,i.useState)(2),[u,h]=(0,i.useState)(["Les Rapides","Les Fut\xe9s"]),[f,j]=(0,i.useState)({teams:[],currentTeamIndex:0,currentRound:1,deck:[],usedCards:[],scores:[],timeLeft:30,isPlaying:!1}),y=(0,i.useRef)(null);(0,i.useEffect)((()=>()=>{y.current&&clearInterval(y.current)}),[]),(0,i.useEffect)((()=>{const e=["Les Rapides","Les Fut\xe9s","Les G\xe9nies","Les Champions"],a=[];for(let s=0;s<o;s++)a.push(e[s]||"\xc9quipe ".concat(s+1));h(a)}),[o]);const k=e=>{const a=[...e];for(let s=a.length-1;s>0;s--){const e=Math.floor(Math.random()*(s+1));[a[s],a[e]]=[a[e],a[s]]}return a},w=()=>{y.current&&clearInterval(y.current),j((e=>{const a=(e.currentTeamIndex+1)%e.teams.length;return 0===e.deck.length?(setTimeout((()=>v()),0),{...e,timeLeft:30,isPlaying:!1}):{...e,currentTeamIndex:a,timeLeft:30,isPlaying:!1}}))},v=()=>{y.current&&clearInterval(y.current),a("roundEnd")},F=()=>{a("winner")};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.bT,{gameKey:"timesup"}),(0,t.jsxs)(d(),{children:[(0,t.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes",className:"jsx-d49deb3a93433eba"}),(0,t.jsx)("meta",{name:"theme-color",content:"#A8D8F0",className:"jsx-d49deb3a93433eba"}),(0,t.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com",className:"jsx-d49deb3a93433eba"}),(0,t.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous",className:"jsx-d49deb3a93433eba"}),(0,t.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&display=swap",rel:"stylesheet",className:"jsx-d49deb3a93433eba"})]}),(0,t.jsx)(n(),{id:"d49deb3a93433eba",children:'body{font-family:"Poppins",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased}.timesup-main{background:-webkit-linear-gradient(top,#A8D8F0 0%,#E8F4F8 100%);background:-moz-linear-gradient(top,#A8D8F0 0%,#E8F4F8 100%);background:-o-linear-gradient(top,#A8D8F0 0%,#E8F4F8 100%);background:linear-gradient(180deg,#A8D8F0 0%,#E8F4F8 100%);min-height:-webkit-calc(100vh - 200px);min-height:-moz-calc(100vh - 200px);min-height:calc(100vh - 200px);overflow-x:hidden;padding:max(15px,min(3vw,25px));padding:clamp(15px,3vw,25px)}.timesup-container{max-width:450px;margin:0 auto;padding:10px}.card{background:-webkit-linear-gradient(315deg,#F5E6D3 0%,#FFF5E6 100%);background:-moz-linear-gradient(315deg,#F5E6D3 0%,#FFF5E6 100%);background:-o-linear-gradient(315deg,#F5E6D3 0%,#FFF5E6 100%);background:linear-gradient(135deg,#F5E6D3 0%,#FFF5E6 100%);-webkit-border-radius:20px;-moz-border-radius:20px;border-radius:20px;padding:12px;margin-bottom:8px;-webkit-box-shadow:0 8px 20px rgba(0,0,0,.12),0 4px 10px rgba(0,0,0,.08);-moz-box-shadow:0 8px 20px rgba(0,0,0,.12),0 4px 10px rgba(0,0,0,.08);box-shadow:0 8px 20px rgba(0,0,0,.12),0 4px 10px rgba(0,0,0,.08);border:2px solid rgba(255,255,255,.5);position:relative}.btn{padding:12px 24px;border:none;-webkit-border-radius:20px;-moz-border-radius:20px;border-radius:20px;font-size:.95rem;font-weight:800;cursor:pointer;-webkit-transition:all.3s cubic-bezier(.34,1.56,.64,1);-moz-transition:all.3s cubic-bezier(.34,1.56,.64,1);-o-transition:all.3s cubic-bezier(.34,1.56,.64,1);transition:all.3s cubic-bezier(.34,1.56,.64,1);width:100%;margin-top:8px;text-transform:uppercase;letter-spacing:.5px;-ms-touch-action:-ms-manipulation;-ms-touch-action:manipulation;touch-action:manipulation;-webkit-box-shadow:0 6px 15px rgba(0,0,0,.12);-moz-box-shadow:0 6px 15px rgba(0,0,0,.12);box-shadow:0 6px 15px rgba(0,0,0,.12)}.btn:active{-webkit-transform:scale(.97);-moz-transform:scale(.97);-ms-transform:scale(.97);-o-transform:scale(.97);transform:scale(.97)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:-webkit-linear-gradient(315deg,#FFB366 0%,#FF9E5C 100%);background:-moz-linear-gradient(315deg,#FFB366 0%,#FF9E5C 100%);background:-o-linear-gradient(315deg,#FFB366 0%,#FF9E5C 100%);background:linear-gradient(135deg,#FFB366 0%,#FF9E5C 100%);color:white;text-shadow:0 2px 4px rgba(0,0,0,.2)}.btn-success{background:-webkit-linear-gradient(315deg,#7FD4A0 0%,#5FBD8A 100%);background:-moz-linear-gradient(315deg,#7FD4A0 0%,#5FBD8A 100%);background:-o-linear-gradient(315deg,#7FD4A0 0%,#5FBD8A 100%);background:linear-gradient(135deg,#7FD4A0 0%,#5FBD8A 100%);color:white}.btn-danger{background:-webkit-linear-gradient(315deg,#FF8F8F 0%,#FF7070 100%);background:-moz-linear-gradient(315deg,#FF8F8F 0%,#FF7070 100%);background:-o-linear-gradient(315deg,#FF8F8F 0%,#FF7070 100%);background:linear-gradient(135deg,#FF8F8F 0%,#FF7070 100%);color:white}@media(hover:hover){.btn-primary:hover:not(:disabled){-webkit-transform:translatey(-2px);-moz-transform:translatey(-2px);-ms-transform:translatey(-2px);-o-transform:translatey(-2px);transform:translatey(-2px);-webkit-box-shadow:0 8px 20px rgba(255,158,92,.3);-moz-box-shadow:0 8px 20px rgba(255,158,92,.3);box-shadow:0 8px 20px rgba(255,158,92,.3)}}@-webkit-keyframes fadeIn{from{opacity:0;-webkit-transform:scale(.95);transform:scale(.95)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-moz-keyframes fadeIn{from{opacity:0;-moz-transform:scale(.95);transform:scale(.95)}to{opacity:1;-moz-transform:scale(1);transform:scale(1)}}@-o-keyframes fadeIn{from{opacity:0;-o-transform:scale(.95);transform:scale(.95)}to{opacity:1;-o-transform:scale(1);transform:scale(1)}}@keyframes fadeIn{from{opacity:0;-webkit-transform:scale(.95);-moz-transform:scale(.95);-o-transform:scale(.95);transform:scale(.95)}to{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);transform:scale(1)}}@-webkit-keyframes pulse{0%,100%{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}}@-moz-keyframes pulse{0%,100%{-moz-transform:scale(1);transform:scale(1)}50%{-moz-transform:scale(1.05);transform:scale(1.05)}}@-o-keyframes pulse{0%,100%{-o-transform:scale(1);transform:scale(1)}50%{-o-transform:scale(1.05);transform:scale(1.05)}}@keyframes pulse{0%,100%{-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.05);-moz-transform:scale(1.05);-o-transform:scale(1.05);transform:scale(1.05)}}@-webkit-keyframes bounce{0%,100%{-webkit-transform:translatey(0)rotate(-5deg);transform:translatey(0)rotate(-5deg)}50%{-webkit-transform:translatey(-20px)rotate(5deg);transform:translatey(-20px)rotate(5deg)}}@-moz-keyframes bounce{0%,100%{-moz-transform:translatey(0)rotate(-5deg);transform:translatey(0)rotate(-5deg)}50%{-moz-transform:translatey(-20px)rotate(5deg);transform:translatey(-20px)rotate(5deg)}}@-o-keyframes bounce{0%,100%{-o-transform:translatey(0)rotate(-5deg);transform:translatey(0)rotate(-5deg)}50%{-o-transform:translatey(-20px)rotate(5deg);transform:translatey(-20px)rotate(5deg)}}@keyframes bounce{0%,100%{-webkit-transform:translatey(0)rotate(-5deg);-moz-transform:translatey(0)rotate(-5deg);-o-transform:translatey(0)rotate(-5deg);transform:translatey(0)rotate(-5deg)}50%{-webkit-transform:translatey(-20px)rotate(5deg);-moz-transform:translatey(-20px)rotate(5deg);-o-transform:translatey(-20px)rotate(5deg);transform:translatey(-20px)rotate(5deg)}}.screen-compact{max-height:-webkit-calc(100vh - 160px);max-height:-moz-calc(100vh - 160px);max-height:calc(100vh - 160px);overflow-y:auto;overflow-x:hidden}.game-screen-compact{height:-webkit-calc(100vh - 120px);height:-moz-calc(100vh - 120px);height:calc(100vh - 120px);overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.game-content{-webkit-box-flex:1;-webkit-flex:1;-moz-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;overflow:hidden}@media(min-width:769px)and (max-width:1024px){.timesup-container{max-width:600px}.screen-compact{max-height:-webkit-calc(100vh - 140px);max-height:-moz-calc(100vh - 140px);max-height:calc(100vh - 140px)}.card{padding:15px}}@media(min-width:1025px){.timesup-container{max-width:550px}.screen-compact{max-height:-webkit-calc(100vh - 140px);max-height:-moz-calc(100vh - 140px);max-height:calc(100vh - 140px)}.card{padding:20px;-webkit-border-radius:28px;-moz-border-radius:28px;border-radius:28px;margin-bottom:12px}
1.btn{padding:15px 32px;font-size:1.05rem}}@media(min-width:1440px){.timesup-container{max-width:600px}.card{padding:25px;-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px}}'}),(0,t.jsxs)("div",{className:"jsx-d49deb3a93433eba min-h-screen flex flex-col bg-white text-black dark:bg-black dark:text-white",children:[(0,t.jsx)(l.Z,{}),(0,t.jsxs)("main",{className:"jsx-d49deb3a93433eba flex-1 timesup-main",children:["setup"===e&&(0,t.jsx)(m.HD,{gameKey:"timesup"}),(0,t.jsxs)("div",{id:"timesup-jeu",className:"jsx-d49deb3a93433eba timesup-container scroll-mt-28",children:["game"!==e&&(0,t.jsxs)("div",{style:{textAlign:"center",marginTop:"10px"},className:"jsx-d49deb3a93433eba card",children:[(0,t.jsx)("h1",{style:{fontSize:"clamp(1.6rem, 7vw, 2.2rem)",fontWeight:900,color:"#5D4E37",marginBottom:"8px",letterSpacing:"-1px",lineHeight:1.2},className:"jsx-d49deb3a93433eba",children:"setup"===e?x.SV.timesup.heading:"\u23f0 TIME'S UP!"}),(0,t.jsx)("p",{style:{color:"#8B7355",fontSize:"clamp(0.85rem, 3vw, 0.95rem)",fontWeight:600},className:"jsx-d49deb3a93433eba",children:"setup"===e?x.SV.timesup.summary:"Le jeu d'ambiance en 3 manches"}),"setup"===e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"jsx-d49deb3a93433eba mt-3 text-sm font-semibold text-[#5D4E37]",children:x.SV.timesup.facts}),(0,t.jsxs)("div",{className:"jsx-d49deb3a93433eba mt-3 flex flex-wrap items-center justify-center gap-3",children:[(0,t.jsx)("a",{href:"#timesup-configuration",className:"jsx-d49deb3a93433eba inline-flex min-h-11 items-center justify-center rounded-xl bg-[#7f006b] px-5 py-2 text-sm font-bold text-white focus-visible:outline focus-visible:outline-4 focus-visible:outline-offset-4 focus-visible:outline-[#7f006b]",children:"Configurer et jouer"}),(0,t.jsx)("a",{href:"#timesup-guide",className:"jsx-d49deb3a93433eba inline-flex min-h-11 items-center text-sm text-[#5D4E37] underline underline-offset-4",children:"Lire les r\xe8gles compl\xe8tes"})]})]})]}),"setup"===e&&(0,t.jsx)("div",{style:{animation:"fadeIn 0.4s ease-out"},className:"jsx-d49deb3a93433eba screen-compact",children:(0,t.jsxs)("div",{className:"jsx-d49deb3a93433eba card",children:[(0,t.jsxs)("h2",{style:{fontSize:"1.2rem",fontWeight:800,color:"#5D4E37",marginBottom:"12px",display:"flex",alignItems:"center",gap:"8px"},className:"jsx-d49deb3a93433eba",children:[(0,t.jsx)("span",{style:{fontSize:"1.2rem"},className:"jsx-d49deb3a93433eba",children:"\ud83d\udcd6"}),"R\xe8gles du Jeu"]}),(0,t.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"8px",marginBottom:"12px"},className:"jsx-d49deb3a93433eba",children:[1,2,3].map((e=>(0,t.jsxs)("div",{onClick:()=>{var a;r(s===(a=e)?null:a)},style:{background:"white",borderRadius:"15px",padding:"12px 8px",textAlign:"center",boxShadow:s===e?"0 8px 20px rgba(255, 158, 92, 0.3)":"0 4px 12px rgba(0, 0, 0, 0.1)",cursor:"pointer",transition:"all 0.3s",border:s===e?"2px solid #FF9E5C":"2px solid transparent",transform:s===e?"translateY(-2px)":"none"},className:"jsx-d49deb3a93433eba",children:[(0,t.jsx)("span",{style:{fontSize:"2rem",marginBottom:"4px",display:"block"},className:"jsx-d49deb3a93433eba",children:["\ud83d\udde3\ufe0f","\ud83d\udd24","\ud83e\udd2b"][e-1]}),(0,t.jsx)("div",{style:{fontSize:"0.7rem",fontWeight:700,color:"#5D4E37",marginBottom:"2px"},className:"jsx-d49deb3a93433eba",children:["Manche 1","Manche 2","Manche 3"][e-1]}),(0,t.jsx)("div",{style:{fontSize:"0.65rem",color:"#8B7355",fontWeight:600},className:"jsx-d49deb3a93433eba",children:["Description","Un Mot","Mime"][e-1]})]},e)))}),s&&(0,t.jsxs)("div",{style:{background:"white",borderRadius:"12px",padding:"12px",marginBottom:"12px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)"},className:"jsx-d49deb3a93433eba",children:[1===s&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{style:{color:"#5D4E37",fontSize:"0.9rem",marginBottom:"6px",fontWeight:800},className:"jsx-d49deb3a93433eba",children:"\ud83d\udde3\ufe0f Manche 1 : Description Libre"}),(0,t.jsx)("p",{style:{color:"#8B7355",lineHeight:1.4,fontSize:"0.8rem"},className:"jsx-d49deb3a93433eba",children:"D\xe9crivez le mot avec autant de mots que vous voulez !"})]}),2===s&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{style:{color:"#5D4E37",fontSize:"0.9rem",marginBottom:"6px",fontWeight:800},className:"jsx-d49deb3a93433eba",children:"\ud83d\udd24 Manche 2 : Un Seul Mot"}),(0,t.jsx)("p",{style:{color:"#8B7355",lineHeight:1.4,fontSize:"0.8rem"},className:"jsx-d49deb3a93433eba",children:"Vous ne pouvez dire qu'UN SEUL mot pour faire deviner."})]}),3===s&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{style:{color:"#5D4E37",fontSize:"0.9rem",marginBottom:"6px",fontWeight:800},className:"jsx-d49deb3a93433eba",children:"\ud83e\udd2b Manche 3 : Mime Uniquement"}),(0,t.jsx)("p",{style:{color:"#8B7355",lineHeight:1.4,fontSize:"0.8rem"},className:"jsx-d49deb3a93433eba",children:"Interdit de parler ! Uniquement des gestes."})]})]}),(0,t.jsxs)("h2",{id:"timesup-configuration",style:{fontSize:"1.2rem",fontWeight:800,color:"#5D4E37",marginBottom:"12px",display:"flex",alignItems:"center",gap:"8px"},className:"jsx-d49deb3a93433eba scroll-mt-28",children:[(0,t.jsx)("span",{style:{fontSize:"1.2rem"},className:"jsx-d49deb3a93433eba",children:"\ud83d\udc65"}),"Configuration"]}),(0,t.jsxs)("div",{style:{display:"grid",gap:"10px",marginBottom:"12px"},className:"jsx-d49deb3a93433eba",children:[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px"},className:"jsx-d49deb3a93433eba",children:[(0,t.jsx)("span",{style:{fontWeight:700,color:"#5D4E37",fontSize:"0.9rem",minWidth:"70px"},className:"jsx-d49deb3a93433eba",children:"\xc9quipes :"}),(0,t.jsxs)("select",{value:o,onChange:e=>g(parseInt(e.target.value)),style:{flex:1,padding:"10px 12px",border:"2px s
1olid white",borderRadius:"12px",fontSize:"0.85rem",fontWeight:600,color:"#5D4E37",background:"white",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",cursor:"pointer"},className:"jsx-d49deb3a93433eba",children:[(0,t.jsx)("option",{value:"2",className:"jsx-d49deb3a93433eba",children:"2 \xe9quipes"}),(0,t.jsx)("option",{value:"3",className:"jsx-d49deb3a93433eba",children:"3 \xe9quipes"}),(0,t.jsx)("option",{value:"4",className:"jsx-d49deb3a93433eba",children:"4 \xe9quipes"})]})]}),u.map(((e,a)=>(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"10px"},className:"jsx-d49deb3a93433eba",children:[(0,t.jsxs)("span",{style:{fontWeight:700,color:"#5D4E37",fontSize:"0.85rem",minWidth:"70px"},className:"jsx-d49deb3a93433eba",children:["\xc9quipe ",a+1]}),(0,t.jsx)("input",{type:"text",value:e,onChange:e=>{const s=[...u];s[a]=e.target.value,h(s)},placeholder:"Nom \xe9quipe ".concat(a+1),style:{flex:1,padding:"10px 12px",border:"2px solid white",borderRadius:"12px",fontSize:"0.85rem",fontWeight:600,color:"#5D4E37",background:"white",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)"},className:"jsx-d49deb3a93433eba"})]},a)))]}),(0,t.jsx)("button",{onClick:()=>{const e=u.filter((e=>""!==e.trim())),s=e.map((()=>0));j({teams:e,currentTeamIndex:0,currentRound:1,deck:k([...p]),usedCards:[],scores:s,timeLeft:30,isPlaying:!1}),a("game")},className:"jsx-d49deb3a93433eba btn btn-primary",children:"\ud83c\udfae Commencer la Partie"})]})}),"game"===e&&(0,t.jsx)("div",{style:{animation:"fadeIn 0.4s ease-out"},className:"jsx-d49deb3a93433eba game-screen-compact",children:(0,t.jsxs)("div",{className:"jsx-d49deb3a93433eba game-content",children:[(0,t.jsxs)("div",{style:{background:"linear-gradient(135deg, #FFB366 0%, #FF9E5C 100%)",borderRadius:"15px",padding:"8px 12px",textAlign:"center",marginBottom:"6px",marginTop:"8px",boxShadow:"0 4px 15px rgba(255, 158, 92, 0.3)",border:"2px solid rgba(255, 255, 255, 0.5)"},className:"jsx-d49deb3a93433eba",children:[(0,t.jsxs)("div",{style:{fontSize:"1.1rem",fontWeight:900,color:"white",marginBottom:"2px"},className:"jsx-d49deb3a93433eba",children:["Manche ",f.currentRound]}),(0,t.jsx)("div",{style:{fontSize:"0.75rem",fontWeight:700,color:"white"},className:"jsx-d49deb3a93433eba",children:b[f.currentRound-1]})]}),(0,t.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"6px",marginBottom:"6px"},className:"jsx-d49deb3a93433eba",children:[(0,t.jsxs)("div",{style:{background:"white",borderRadius:"12px",padding:"8px",textAlign:"center",boxShadow:"0 3px 10px rgba(0, 0, 0, 0.1)"},className:"jsx-d49deb3a93433eba",children:[(0,t.jsx)("div",{style:{fontSize:"0.65rem",color:"#8B7355",fontWeight:600,marginBottom:"3px"},className:"jsx-d49deb3a93433eba",children:"\xc9QUIPE"}),(0,t.jsx)("div",{style:{fontSize:"0.95rem",fontWeight:900,color:"#5D4E37"},className:"jsx-d49deb3a93433eba",children:f.teams[f.currentTeamIndex]})]}),(0,t.jsxs)("div",{style:{background:"white",borderRadius:"12px",padding:"8px",textAlign:"center",boxShadow:"0 3px 10px rgba(0, 0, 0, 0.1)"},className:"jsx-d49deb3a93433eba",children:[(0,t.jsx)("div",{style:{fontSize:"0.65rem",color:"#8B7355",fontWeight:600,marginBottom:"3px"},className:"jsx-d49deb3a93433eba",children:"CARTES"}),(0,t.jsx)("div",{style:{fontSize:"0.95rem",fontWeight:900,color:"#5D4E37"},className:"jsx-d49deb3a93433eba",children:f.deck.length})]})]}),(0,t.jsx)("div",{style:{textAlign:"center",marginBottom:"6px"},className:"jsx-d49deb3a93433eba",children:(0,t.jsx)("div",{style:{fontSize:"2.8rem",fontWeight:900,color:f.timeLeft<=10?"#FF7070":"#FF9E5C",fontVariantNumeric:"tabular-nums",textShadow:"0 3px 12px rgba(255, 158, 92, 0.3)",animation:f.timeLeft<=10?"pulse 0.5s infinite":"none"},className:"jsx-d49deb3a93433eba",children:f.timeLeft})}),(0,t.jsx)("div",{style:{background:"white",borderRadius:"20px",padding:"20px 15px",minHeight:"120px",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"8px",boxShadow:"0 8px 25px rgba(0, 0, 0, 0.15)",border:"3px solid rgba(255, 255, 255, 0.8)"},className:"jsx-d49deb3a93433eba",children:(0,t.jsx)("div",{style:{fontSize:"clamp(1.8rem, 7vw, 3rem)",fontWeight:900,color:"#5D4E37",textAlign:"center",lineHeight:1.2,wordWrap:"break-word"},className:"jsx-d49deb3a93433eba",children:f.isPlaying&&f.deck[0]||"Pr\xeat ?"})}),(0,t.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"8px",marginBottom:"6px"},className:"jsx-d49deb3a93433eba",children:[(0,t.jsx)("button",{onClick:()=>{f.isPlaying&&0!==f.deck.length&&j((e=>{const a=[...e.deck],s=a.shift(),t=s?[...e.usedCards,s]:e.usedCards,r=[...e.scores];return r[e.currentTeamIndex]++,0===a.length?(y.current&&clearInterval(y.current),setTimeout((()=>w()),0),{...e,deck:a,usedCards:t,scores:r,isPlaying:!1}):{...e,deck:a,usedCards:t,scores:r}}))},disabled:!f.isPlaying,style:{marginTop:0,padding:"10px 20px",fontSize:"0.9rem"},className:"jsx-d49deb3a93433eba btn btn-success",children:"\u2713 Trouv\xe9"}),(0,t.jsx)("button",{onClick:()=>{f.isPlaying&&0!==f.deck.length&&j((e=>{const a=[...e.deck],s=a.shift();return s&&a.push(s),{...e,deck:a}}))},disabled:!f.isPlaying,style:{marginTop:0,padding:"10px 20px",fontSize:"0.9rem"},className:"jsx-d49deb3a93433eba btn btn-danger",children:"\u23ed Passer"})]}),!f.isPlaying&&(0,t.jsx)("button",{onClick:()=>{0!==f.deck.length?(j((e=>({...e,isPlaying:!0,timeLeft:30}))),y.current=setInterval((()=>{j((e=>{const a=e.timeLeft-1;return a<=0?(y.current&&clearInterval(y.current),setTimeout((()=>w()),0),{...e,timeLeft:0,isPlaying:!1}):{...e,timeLeft:a}}))}),1e3)):v()},style:{marginTop:0,padding:"10px 20px",fontSize:"0.9rem"},className:"jsx-d49deb3a93433eba btn btn-primary",children:"\u25b6\ufe0f D\xe9marrer"}),(0,t.jsxs)("div",{style:{background:"linear-gradient(135deg, #F5E6D3 0%, #FFF5E6 100%)",borderRadius:"15p
1x",padding:"8px 10px",marginTop:"8px",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)",border:"2px solid rgba(255, 255, 255, 0.5)"},className:"jsx-d49deb3a93433eba",children:[(0,t.jsx)("div",{style:{fontSize:"0.8rem",fontWeight:800,color:"#5D4E37",marginBottom:"6px",textAlign:"center"},className:"jsx-d49deb3a93433eba",children:"\ud83d\udcca Scores"}),(0,t.jsx)("div",{style:{display:"flex",gap:"6px",flexWrap:"wrap",justifyContent:"center"},className:"jsx-d49deb3a93433eba",children:f.teams.map(((e,a)=>(0,t.jsxs)("div",{style:{background:"white",borderRadius:"10px",padding:"6px 10px",display:"flex",alignItems:"center",gap:"6px",boxShadow:a===f.currentTeamIndex?"0 4px 12px rgba(255, 179, 102, 0.3)":"0 2px 8px rgba(0, 0, 0, 0.1)",border:a===f.currentTeamIndex?"2px solid #FFB366":"2px solid transparent"},className:"jsx-d49deb3a93433eba",children:[(0,t.jsx)("span",{style:{fontSize:"0.75rem",fontWeight:800,color:"#5D4E37"},className:"jsx-d49deb3a93433eba",children:e}),(0,t.jsx)("span",{style:{fontSize:"1rem",fontWeight:900,color:"#FF9E5C"},className:"jsx-d49deb3a93433eba",children:f.scores[a]})]},a)))})]})]})}),"roundEnd"===e&&(0,t.jsx)("div",{style:{animation:"fadeIn 0.4s ease-out"},className:"jsx-d49deb3a93433eba screen-compact",children:(0,t.jsxs)("div",{className:"jsx-d49deb3a93433eba card",children:[(0,t.jsx)("h2",{style:{fontSize:"1.4rem",fontWeight:800,color:"#5D4E37",marginBottom:"12px",textAlign:"center"},className:"jsx-d49deb3a93433eba",children:"\ud83c\udf89 Fin de Manche !"}),(0,t.jsx)("div",{style:{display:"grid",gap:"8px",marginBottom:"12px"},className:"jsx-d49deb3a93433eba",children:f.teams.map(((e,a)=>(0,t.jsxs)("div",{style:{background:"white",borderRadius:"12px",padding:"12px 15px",display:"flex",justifyContent:"space-between",alignItems:"center",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)"},className:"jsx-d49deb3a93433eba",children:[(0,t.jsx)("span",{style:{fontSize:"0.95rem",fontWeight:800,color:"#5D4E37"},className:"jsx-d49deb3a93433eba",children:e}),(0,t.jsxs)("span",{style:{fontSize:"1.3rem",fontWeight:900,color:"#FF9E5C"},className:"jsx-d49deb3a93433eba",children:[f.scores[a]," pts"]})]},a)))}),(0,t.jsx)("button",{onClick:()=>{f.currentRound>=3?F():(j((e=>({...e,currentRound:e.currentRound+1,deck:k([...e.usedCards]),usedCards:[],currentTeamIndex:0,timeLeft:30,isPlaying:!1}))),a("game"))},className:"jsx-d49deb3a93433eba btn btn-primary",children:f.currentRound>=3?"\ud83c\udfc6 Voir R\xe9sultats":"\u27a1\ufe0f Manche Suivante"})]})}),"winner"===e&&(0,t.jsx)("div",{style:{animation:"fadeIn 0.4s ease-out"},className:"jsx-d49deb3a93433eba screen-compact",children:(0,t.jsxs)("div",{style:{textAlign:"center",padding:"15px"},className:"jsx-d49deb3a93433eba card",children:[(0,t.jsx)("div",{style:{fontSize:"4rem",marginBottom:"15px",animation:"bounce 1s infinite",filter:"drop-shadow(0 8px 20px rgba(255, 215, 0, 0.4))"},className:"jsx-d49deb3a93433eba",children:"\ud83c\udfc6"}),(0,t.jsx)("div",{style:{fontSize:"clamp(1.6rem, 7vw, 2.2rem)",fontWeight:900,color:"#5D4E37",marginBottom:"8px",lineHeight:1.2},className:"jsx-d49deb3a93433eba",children:(()=>{const e=Math.max(...f.scores),a=f.scores.indexOf(e);return f.teams[a]})()}),(0,t.jsx)("div",{style:{fontSize:"1rem",color:"#8B7355",fontWeight:600,marginBottom:"20px"},className:"jsx-d49deb3a93433eba",children:"Vous avez gagn\xe9 !"}),(0,t.jsx)("h2",{style:{fontSize:"1.2rem",fontWeight:800,color:"#5D4E37",marginBottom:"12px"},className:"jsx-d49deb3a93433eba",children:"\ud83c\udfaf Scores Finaux"}),(0,t.jsx)("div",{style:{display:"grid",gap:"8px",marginBottom:"12px"},className:"jsx-d49deb3a93433eba",children:f.teams.map(((e,a)=>({team:e,score:f.scores[a]}))).sort(((e,a)=>a.score-e.score)).map(((e,a)=>{let{team:s,score:r}=e;const n=["\ud83e\udd47","\ud83e\udd48","\ud83e\udd49"][a]||"\ud83c\udfc5";return(0,t.jsxs)("div",{style:{background:"white",borderRadius:"12px",padding:"12px 15px",display:"flex",justifyContent:"space-between",alignItems:"center",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.1)"},className:"jsx-d49deb3a93433eba",children:[(0,t.jsxs)("span",{style:{fontSize:"0.95rem",fontWeight:800,color:"#5D4E37"},className:"jsx-d49deb3a93433eba",children:[n," ",s]}),(0,t.jsxs)("span",{style:{fontSize:"1.3rem",fontWeight:900,color:"#FF9E5C"},className:"jsx-d49deb3a93433eba",children:[r," pts"]})]},a)}))}),(0,t.jsx)("button",{onClick:()=>
1{j({teams:[],currentTeamIndex:0,currentRound:1,deck:[],usedCards:[],scores:[],timeLeft:30,isPlaying:!1}),r(null),a("setup")},className:"jsx-d49deb3a93433eba btn btn-primary",children:"\ud83d\udd04 Nouvelle Partie"})]})})]}),"setup"===e&&(0,t.jsx)(m.Hv,{gameKey:"timesup"})]}),(0,t.jsx)(c.Z,{})]})]})}}},function(e){e.O(0,[9981,3721,9548,3671,814,2888,9774,179],(function(){return a=24697,e(e.s=a);var a}));var a=e.O();_N_E=a}]);
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.