/* Le calendrier de l'Avent de Soly l'aventurier.
   Mêmes éléments que les épisodes et que la maquette validée (application/maquette/calendrier.html) :
   badge en bois, drapeaux, bulles, carte quiz, police Fredoka.
   Toutes les tailles sont en unités de maquette (1080 de large). main.js met la scène à l'échelle de l'écran. */
@font-face { font-family: "Fred"; src: url("assets/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #141d40; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
button:focus-visible { outline: 7px solid #2ec4e6; outline-offset: 5px; }
/* overflow: clip : rien ne dépasse ET rien ne peut défiler. Avec « hidden » seul, le navigateur faisait glisser toute la scène de 200
   quand un bouton prenait le focus, à cause de la butte de neige qui dépasse sur les côtés. ecrans.js remet aussi le défilement à zéro. */
#cadre { position: fixed; inset: 0; overflow: hidden; overflow: clip; background: #dfe8f6; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
#scene { position: absolute; left: 0; top: 0; width: 1080px; height: 1920px; overflow: hidden; overflow: clip; font-family: "Fred", sans-serif; transform-origin: 0 0;
  user-select: none; -webkit-user-select: none; --plus: 0px;
  background: linear-gradient(180deg, #1d2b5c 0%, #3a4f9a 30%, #8a7fc4 58%, #f2b8c6 78%, #ffe1c4 100%); }
#gl { position: absolute; left: 0; top: 0; display: block; }
#voile { position: absolute; inset: 0; background: rgba(22, 28, 70, 0.5); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
#voile.actif { opacity: 1; }
#sol { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }   /* la butte dépasse exprès : ce cadre la coupe sans agrandir la scène */
#butte { position: absolute; left: -200px; right: -200px; bottom: -340px; height: 640px; border-radius: 50%; pointer-events: none;
  background: linear-gradient(180deg, #ffffff 0%, #e9f0fb 40%, #cfdcf2 100%); box-shadow: 0 -12px 40px rgba(60, 70, 140, 0.25); }

/* ---------- la colonne de texte : 1080 de large, centrée par main.js. Elle laisse passer les touchers vers les drapeaux. */
#col { position: absolute; top: 0; bottom: 0; left: 0; width: 1080px; pointer-events: none; }
#col button, #col .card, #col .badge-gagne { pointer-events: auto; }

/* ---------- haut de l'écran : badge de la chaîne et pastilles */
#badge { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); background: linear-gradient(180deg,#b97a43,#94592b); color: #ffe08a;
  border: 5px solid #6e4220; font-weight: 700; font-size: 40px; padding: 12px 36px 14px; border-radius: 40px; white-space: nowrap;
  box-shadow: 0 8px 0 #5b3518, 0 14px 24px rgba(60,30,10,0.4); }
#badge span { color: #fff; }
.pastille { position: absolute; top: 62px; height: 70px; padding: 0 22px 2px 16px; border-radius: 38px; background: linear-gradient(180deg,#fffaf0,#f1e1bf);
  border: 5px solid #4a2c17; color: #4a2c17; font-weight: 700; font-size: 32px; display: flex; align-items: center; gap: 10px; white-space: nowrap;
  box-shadow: 0 6px 0 #5b3518, 0 12px 18px rgba(20,15,40,0.35); }
.pastille svg { width: 40px; height: 40px; flex: none; }
.pastille::after { content: ""; position: absolute; left: -24px; right: -24px; top: -40px; bottom: -40px; }   /* zone de toucher élargie */
#p-gauche { left: 30px; } #p-droite { right: 30px; }

/* ---------- titre : même contour brun que les sous-titres des vidéos */
#titre { position: absolute; left: 0; right: 0; top: 176px; color: #fff; font-weight: 700; text-align: center; white-space: nowrap; }
#titre .k { font-size: 46px; letter-spacing: 0.12em; color: #ffd23f; -webkit-text-stroke: 10px #4a2c17; paint-order: stroke fill; text-shadow: 0 8px 18px rgba(40,20,5,0.45); }
#titre .l { font-size: 88px; line-height: 1.06; -webkit-text-stroke: 16px #4a2c17; paint-order: stroke fill; text-shadow: 0 8px 18px rgba(40,20,5,0.45); }
#titre .l.p { font-size: 80px; margin-top: 4px; }
#titre .l.pp { font-size: 72px; -webkit-text-stroke-width: 14px; }
#titre .acc { color: #ffb347; }
.etoiles { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
.etoiles svg { width: 112px; height: 112px; filter: drop-shadow(0 8px 10px rgba(40,20,5,0.4)); animation: arrive 0.5s cubic-bezier(.3,1.6,.5,1) backwards; }
.etoiles svg:nth-child(2) { animation-delay: 0.25s; } .etoiles svg:nth-child(3) { animation-delay: 0.5s; }
.etoiles svg.vide { opacity: 0.4; }
@keyframes arrive { from { transform: scale(0) rotate(-40deg); } to { transform: scale(1) rotate(0); } }

/* ---------- drapeaux plantés sur la maquette */
#drapeaux, #effets, #etincelles { position: absolute; inset: 0; }
#effets, #etincelles { pointer-events: none; overflow: hidden; }   /* les rayons peuvent dépasser de l'écran : on les coupe ici */
.lab { position: absolute; left: 0; top: 0; white-space: nowrap; }
.lab .pole { position: absolute; left: -3px; bottom: 0; width: 6px; height: 78px; background: linear-gradient(90deg,#3a2414,#7a5230); border-radius: 3px; }
.lab .flag { position: absolute; left: 3px; bottom: 36px; min-width: 56px; padding: 2px 13px 4px 11px; background: linear-gradient(180deg,#fffaf0,#f1e1bf); color: #4a2c17;
  font-weight: 700; font-size: 32px; line-height: 1.2; text-align: center; border-radius: 5px 14px 14px 5px; box-shadow: 0 6px 12px rgba(20,15,40,0.4); }
.lab .zone { position: absolute; left: -22px; bottom: -6px; width: 104px; height: 104px; border-radius: 20px; }   /* ce qu'on touche : plus large que le dessin */
/* la case du jour : un grand drapeau jaune qui saute */
.lab.jour { animation: saute 1.1s ease-in-out infinite; }
.lab.jour .pole { left: -5px; width: 10px; height: 196px; }
.lab.jour .flag { left: 5px; bottom: 78px; min-width: 140px; padding: 0 28px 8px 22px; font-size: 84px; background: linear-gradient(180deg,#ffe680,#ffc300);
  border: 6px solid #4a2c17; border-left-width: 0; border-radius: 8px 30px 30px 8px; box-shadow: 0 10px 18px rgba(20,15,40,0.45); }
.lab.jour .halo { position: absolute; left: -90px; bottom: -30px; width: 180px; height: 60px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,210,63,0.95), rgba(255,210,63,0) 70%); animation: halo 1.1s ease-in-out infinite; }
.lab.jour .zone { left: -50px; bottom: -30px; width: 260px; height: 260px; }
/* une case en retard : jaune aussi, en plus petit */
.lab.retard { animation: saute 1.7s ease-in-out infinite; }
.lab.retard .pole { left: -4px; width: 8px; height: 124px; }
.lab.retard .flag { left: 4px; bottom: 52px; min-width: 84px; padding: 0 16px 5px 13px; font-size: 50px; background: linear-gradient(180deg,#ffe680,#ffc300);
  border: 5px solid #4a2c17; border-left-width: 0; border-radius: 6px 20px 20px 6px; box-shadow: 0 8px 14px rgba(20,15,40,0.45); }
.lab.retard .zone { left: -28px; bottom: -10px; width: 150px; height: 150px; }
/* une case réussie : une pastille dorée à l'endroit de l'objet gagné */
.lab.fait .ok { position: absolute; left: -32px; bottom: -8px; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe680, #ffc300);
  border: 5px solid #4a2c17; color: #4a2c17; font-weight: 700; font-size: 34px; line-height: 52px; text-align: center; box-shadow: 0 6px 10px rgba(20,15,40,0.45); }
.lab.fait .zone { left: -52px; bottom: -28px; }
/* l'étiquette plantée pendant l'explication */
.lab.grand .pole { left: -4px; width: 8px; height: 150px; }
.lab.grand .flag { left: 4px; bottom: 82px; padding: 12px 26px 12px 16px; font-size: 40px; letter-spacing: 0.04em; border-radius: 6px 18px 18px 6px; text-transform: uppercase; box-shadow: 0 10px 18px rgba(40,20,5,0.35); }
@keyframes saute { 0%, 100% { margin-top: 0; } 50% { margin-top: -16px; } }
@keyframes halo { 0%, 100% { opacity: 0.55; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.15); } }

/* ---------- le bas de l'écran : Soly, sa bulle, le gros bouton. Collé en bas, quelle que soit la hauteur. */
#bas { position: absolute; left: 0; right: 0; bottom: 0; height: 660px; }
#soly { position: absolute; left: 10px; top: 5px; width: 540px; height: 605px; }
.bub { position: absolute; left: 470px; top: 100px; width: 570px; padding: 26px 30px 28px 104px; border-radius: 40px;
  background: linear-gradient(180deg, #fffaf0, #f6e6c4); border: 6px solid #4a2c17; color: #4a2c17; font-weight: 600; font-size: 44px; line-height: 1.12;
  box-shadow: 0 16px 30px rgba(40,20,5,0.4); }
.bub::before { content: ""; position: absolute; left: -34px; top: 74px; border: 22px solid transparent; border-right: 34px solid #4a2c17; border-left: 0; }
.bub::after { content: ""; position: absolute; left: -22px; top: 82px; border: 14px solid transparent; border-right: 24px solid #f9edd2; border-left: 0; }
.bub .ico { position: absolute; left: 22px; top: 22px; width: 66px; height: 66px; border-radius: 50%; background: #ffd23f; border: 5px solid #4a2c17;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 42px; color: #e63946; }
.bub .k { display: block; font-size: 28px; font-weight: 700; color: #e07000; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.bouton { position: absolute; right: 60px; top: 466px; padding: 16px 46px 22px; border-radius: 70px; background: linear-gradient(180deg,#ff5a66,#d62839);
  color: #fff; font-weight: 700; font-size: 54px; border: 7px solid #4a2c17; box-shadow: 0 10px 0 #8e1a26, 0 22px 30px rgba(40,20,5,0.45); white-space: nowrap;
  display: flex; align-items: center; gap: 18px; }
.bouton:active { transform: translateY(6px); box-shadow: 0 4px 0 #8e1a26, 0 12px 20px rgba(40,20,5,0.45); }
.bouton svg { width: 40px; height: 40px; }

/* ---------- carte quiz (celle des vidéos, avec trois réponses en images) */
.card { position: absolute; left: 70px; right: 70px; top: calc(262px + var(--plus)); padding: 38px 44px 46px; border-radius: 44px; background: linear-gradient(180deg,#fffaf0,#f6e6c4);
  border: 8px solid #4a2c17; box-shadow: 0 14px 0 #5b3518, 0 30px 44px rgba(40,20,5,0.45); text-align: center; color: #4a2c17; }
.tag { display: inline-block; padding: 10px 30px 12px; border-radius: 40px; background: #e63946; color: #fff; font-weight: 700; font-size: 44px; letter-spacing: 0.06em; margin-bottom: 24px; }
.card .q { font-weight: 700; font-size: 60px; line-height: 1.12; margin-bottom: 34px; }
.card .opts { display: flex; flex-direction: column; gap: 28px; }
.card .opt { display: flex; align-items: center; gap: 28px; width: 100%; padding: 16px 26px 20px 22px; border-radius: 34px; border: 6px solid #4a2c17; font-weight: 700; font-size: 56px;
  color: #fff; box-shadow: 0 9px 0 #4a2c17; text-align: left; }
.card .opt:active { transform: translateY(5px); box-shadow: 0 4px 0 #4a2c17; }
.card .opt .ic { width: 112px; height: 112px; border-radius: 50%; background: #fffaf0; border: 5px solid #4a2c17; flex: none; display: flex; align-items: center; justify-content: center; }
.card .opt .ic svg { width: 78px; height: 78px; }
.card .opt.faux { opacity: 0.5; animation: secoue 0.4s; cursor: default; }
@keyframes secoue { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-14px); } 75% { transform: translateX(14px); } }

/* ---------- le cadeau mystère : trois tapes pour l'ouvrir */
.cadeau { position: absolute; left: 240px; top: calc(430px + var(--plus)); width: 600px; height: 700px; display: block; transition: opacity 0.4s, transform 0.4s; }
.cadeau svg { width: 600px; height: 600px; display: block; overflow: visible; filter: drop-shadow(0 26px 30px rgba(20,15,40,0.5)); animation: respire 1.6s ease-in-out infinite; }
.cadeau .couvercle { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.45s cubic-bezier(.3,1.4,.5,1), opacity 0.45s; }
.cadeau.secoue svg { animation: secousse 0.35s; }
.cadeau.ouvert { opacity: 0; transform: scale(1.2); transition-delay: 0.25s; }
.cadeau.ouvert .couvercle { transform: translateY(-170px) rotate(-22deg); opacity: 0; }
.cadeau .points { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 26px; }
.cadeau .points i { width: 44px; height: 44px; border-radius: 50%; background: #fffaf0; border: 6px solid #4a2c17; box-shadow: 0 6px 0 rgba(40,20,5,0.4); }
.cadeau .points i.fait { background: #ffd23f; }
@keyframes respire { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.05) rotate(2deg); } }
@keyframes secousse { 0%, 100% { transform: rotate(0) scale(1.08); } 20% { transform: rotate(-11deg) scale(1.12); } 50% { transform: rotate(10deg) scale(1.12); } 80% { transform: rotate(-6deg) scale(1.08); } }

/* ---------- le bandeau d'un nouveau badge */
.badge-gagne { position: absolute; left: 150px; right: 150px; top: calc(420px + var(--plus)); padding: 40px 40px 150px; border-radius: 44px; background: linear-gradient(180deg,#fffaf0,#f6e6c4);
  border: 8px solid #4a2c17; box-shadow: 0 14px 0 #5b3518, 0 30px 44px rgba(40,20,5,0.45); text-align: center; color: #4a2c17; animation: arrive 0.45s cubic-bezier(.3,1.4,.5,1); }
.badge-gagne .dessin { width: 240px; height: 240px; margin: 6px auto 14px; border-radius: 50%; background: #ffd23f; border: 8px solid #4a2c17; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 0 #b8860b; }
.badge-gagne .dessin svg { width: 160px; height: 160px; }
.badge-gagne .nom { font-weight: 700; font-size: 68px; line-height: 1.1; }
.badge-gagne .bouton { right: auto; left: 50%; top: auto; bottom: 30px; transform: translateX(-50%); }
.badge-gagne .bouton:active { transform: translateX(-50%) translateY(6px); }

/* ---------- l'objet gagné : rayons et étincelles */
#rayons { position: absolute; width: 820px; height: 820px; margin: -410px 0 0 -410px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255,226,120,0.55) 0deg 8deg, rgba(255,226,120,0) 8deg 30deg);
  -webkit-mask: radial-gradient(circle, #000 0%, #000 20%, transparent 66%); mask: radial-gradient(circle, #000 0%, #000 20%, transparent 66%);
  animation: tourne 16s linear infinite; }
#eclat { position: absolute; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,214,110,0.6) 0%, rgba(255,214,110,0.38) 28%, rgba(255,210,63,0.16) 50%, rgba(255,210,63,0) 68%); }
.etinc { position: absolute; background: #fff7c2; pointer-events: none; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 6px rgba(255,210,63,0.9)); animation: scintille 1.6s ease-in-out infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes scintille { 0%, 100% { opacity: 0.35; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.1); } }

/* ---------- messages par-dessus tout : téléphone couché, panne. Hors de la scène, donc en vrais pixels. */
.message { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px;
  background: #141d40; color: #fff; font-family: "Fred", sans-serif; font-weight: 600; font-size: 20px; line-height: 1.3; text-align: center; }
.message button { padding: 12px 28px 14px; border-radius: 40px; background: #e63946; color: #fff; font-weight: 700; font-size: 20px; border: 3px solid #fff; }

/* ---------- Soly réagit quand on le touche. Le bouton couvre son corps, pas toute son image, qui déborde sur le bas de l'île. */
#touche-soly { position: absolute; left: 70px; top: 70px; width: 400px; height: 520px; border-radius: 45%; }
#soly.saute { animation: soly-saute 0.55s; }
@keyframes soly-saute { 0%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-70px) scale(0.96, 1.06); } 62% { transform: translateY(0) scale(1.05, 0.95); } 82% { transform: translateY(-14px) scale(1); } }

/* ---------- les panneaux par-dessus l'île : carnet, fiche, barrière, coin des parents */
#panneau { position: absolute; inset: 0; }
.panneau { position: absolute; left: 40px; right: 40px; top: calc(150px + var(--plus)); padding: 34px 36px 40px; border-radius: 44px; pointer-events: auto;
  background: linear-gradient(180deg,#fffaf0,#f6e6c4); border: 8px solid #4a2c17; box-shadow: 0 14px 0 #5b3518, 0 30px 44px rgba(40,20,5,0.45); text-align: center; color: #4a2c17;
  animation: arrive-panneau 0.3s cubic-bezier(.3,1.3,.5,1); }
@keyframes arrive-panneau { from { transform: translateY(60px) scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }
.panneau .tag { margin-bottom: 18px; font-size: 40px; }
.panneau .fermer { position: absolute; right: -22px; top: -30px; width: 96px; height: 96px; border-radius: 50%; background: #e63946; color: #fff; border: 7px solid #4a2c17;
  font-weight: 700; font-size: 62px; line-height: 70px; box-shadow: 0 7px 0 #8e1a26; }
.panneau .fermer::after { content: ""; position: absolute; inset: -26px; }

/* le carnet d'aventurier */
.carnet .resume { font-weight: 600; font-size: 40px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.carnet .resume svg { width: 54px; height: 54px; flex: none; }
.carnet .resume b { font-size: 50px; font-weight: 700; }
.carnet .barre { height: 34px; margin: 16px 40px 8px; border-radius: 20px; background: #e9d7ad; border: 5px solid #4a2c17; overflow: hidden; }
.carnet .barre i { display: block; height: 100%; min-width: 14px; background: linear-gradient(180deg,#ffe680,#ffc300); }
.carnet .prochain { font-weight: 600; font-size: 34px; margin-bottom: 20px; }
.medaillons { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 26px; }
.medaillon { flex: 1; font-weight: 700; font-size: 24px; line-height: 1.1; }
.medaillon .rond { width: 112px; height: 112px; margin: 0 auto 8px; border-radius: 50%; background: #e3d3ac; border: 6px solid #4a2c17; display: flex; align-items: center; justify-content: center;
  font-size: 60px; color: #a58f66; }
.medaillon.gagne .rond { background: #ffd23f; box-shadow: 0 6px 0 #b8860b; }
.medaillon .rond svg { width: 76px; height: 76px; }
.medaillon:not(.gagne) span { opacity: 0.55; }
.grille { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.vignette { position: relative; height: 158px; border-radius: 22px; border: 5px solid #4a2c17; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.vignette.gagne { background: linear-gradient(180deg,#bfe6f7,#eaf6fd); box-shadow: 0 6px 0 #4a2c17; }
.vignette.gagne:active { transform: translateY(4px); box-shadow: 0 2px 0 #4a2c17; }
.vignette.mystere { background: #e9dcc0; border-style: dashed; }
.vignette img { width: 118px; height: 118px; }
.vignette.mystere img { filter: brightness(0); opacity: 0.2; }
.vignette b { position: absolute; left: 5px; top: 4px; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 19px; background: #ffd23f; border: 3px solid #4a2c17; font-size: 24px; line-height: 31px; color: #4a2c17; }
.vignette.mystere b { background: #fffaf0; }
.vignette .et { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; justify-content: center; }
.vignette .et svg { width: 30px; height: 30px; }
.vignette .et svg.vide { opacity: 0.35; }
.vignette .quoi { position: absolute; font-weight: 700; font-size: 76px; color: #94592b; }

/* la fiche d'un objet gagné */
.fiche .photo { width: 360px; height: 360px; margin: 0 auto 10px; border-radius: 50%; background: linear-gradient(180deg,#bfe6f7,#eaf6fd); border: 8px solid #4a2c17;
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fiche .photo img { width: 320px; height: 320px; }
.fiche .nom { font-weight: 700; font-size: 60px; line-height: 1.1; }
.fiche .nom::first-letter { text-transform: uppercase; }
.fiche .etoiles { margin-top: 10px; }
.fiche .etoiles svg { width: 84px; height: 84px; }
.fiche .question { font-weight: 700; font-size: 44px; line-height: 1.15; color: #e07000; margin: 18px 0 12px; }
.fiche p { font-weight: 600; font-size: 40px; line-height: 1.2; margin: 0 20px 14px; }
.fiche .actions { position: relative; height: 130px; margin-top: 26px; }
.fiche .actions .bouton { right: auto; left: 50%; top: 0; transform: translateX(-50%); }
.fiche .actions .bouton:active { transform: translateX(-50%) translateY(6px); }

/* la barrière : une multiplication avant le coin des parents */
.barriere .question { font-weight: 600; font-size: 46px; line-height: 1.25; }
.barriere .question b { font-size: 66px; color: #e63946; white-space: nowrap; }
.barriere .saisie { width: 300px; height: 120px; margin: 20px auto 10px; border-radius: 26px; background: #fff; border: 7px solid #4a2c17; font-weight: 700; font-size: 84px; line-height: 104px; }
.barriere .saisie.erreur { animation: secoue 0.4s; border-color: #e63946; }
.barriere .aide { font-weight: 600; font-size: 34px; margin-bottom: 22px; }
.clavier { display: grid; grid-template-columns: repeat(3, 190px); gap: 18px; justify-content: center; }
.touche { height: 150px; border-radius: 30px; background: linear-gradient(180deg,#fffaf0,#f1e1bf); border: 6px solid #4a2c17; box-shadow: 0 8px 0 #4a2c17; font-weight: 700; font-size: 72px; color: #4a2c17;
  display: flex; align-items: center; justify-content: center; }
.touche:active { transform: translateY(5px); box-shadow: 0 3px 0 #4a2c17; }
.touche.vert { background: linear-gradient(180deg,#5fd06f,#3fae4f); color: #fff; font-size: 56px; }
.touche.gris svg { width: 64px; height: 64px; }

/* le coin des parents */
.parents { text-align: left; }
.parents .tag { display: block; width: fit-content; margin: 0 auto 22px; }
.parents p { font-weight: 500; font-size: 40px; line-height: 1.25; margin-bottom: 20px; }
.parents p b { font-weight: 700; }
.parents p.alerte { color: #b3261e; font-weight: 700; }
.parents .rangee:last-child { margin-bottom: 0; }
.parents .rangee { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
.choix, .lien { min-height: 140px; padding: 10px 34px 14px; border-radius: 70px; background: linear-gradient(180deg,#fffaf0,#f1e1bf); border: 6px solid #4a2c17; box-shadow: 0 7px 0 #4a2c17;
  font-weight: 700; font-size: 38px; color: #4a2c17; text-decoration: none; display: inline-flex; align-items: center; }
.choix:active, .lien:active { transform: translateY(4px); box-shadow: 0 3px 0 #4a2c17; }
.choix.rouge { background: linear-gradient(180deg,#ff5a66,#d62839); color: #fff; }
.confirme { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 22px; border-radius: 30px; background: #fde2e2; border: 5px dashed #e63946; }
.confirme p { flex-basis: 100%; margin: 0; font-weight: 700; }

/* ---------- pour ceux qui ont demandé moins de mouvement */
@media (prefers-reduced-motion: reduce) {
  .lab.jour, .lab.retard, .lab.jour .halo, #rayons, .etinc, .cadeau svg, .etoiles svg, .badge-gagne, .panneau, #soly.saute { animation: none !important; }
}
