/* Page Superkids (gabarit page-superkids.php). Couleurs tirées des chiffres du cadran Superkids. */
.sk {
	--sk-yellow: #ffd21f;
	--sk-orange: #ff9d00;
	--sk-red: #ff4f4f;
	--sk-green: #89bd24;
	--sk-blue: #53c1db;
	--sk-purple: #a6529a;
	--sk-ink: #1d1d1b;
	--sk-pad: clamp(16px, 4vw, 56px);
	--sk-max: 1440px;
	display: flex;
	flex-direction: column;
	gap: clamp(48px, 7vw, 104px);
	padding: 8px 0 clamp(56px, 8vw, 120px);
	color: var(--sk-ink);
	font-family: var(--ucs-font-text);
}
.sk > * { box-sizing: border-box; width: calc(100% - 2 * var(--sk-pad)); max-width: var(--sk-max); margin: 0 auto; }
.sk h1, .sk h2, .sk p { margin: 0; }
.sk-title { font-family: var(--ucs-font-head); font-weight: 700; font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: 1; letter-spacing: -.012em; text-wrap: balance; }
.sk-lead { max-width: 48ch; font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.55; }

/* Boutons */
.sk a.sk-btn, .sk button.sk-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; font-family: var(--ucs-font-head); font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; transition: transform .2s cubic-bezier(.3,1.6,.5,1), background .2s, color .2s; }
.sk a.sk-btn:hover, .sk button.sk-btn:hover { transform: translateY(-3px) rotate(-1.5deg); }
.sk a.sk-btn--ink, .sk button.sk-btn--ink { background: var(--sk-ink); color: #fff; }
.sk a.sk-btn--ink:hover, .sk button.sk-btn--ink:hover { background: var(--sk-ink); color: var(--sk-yellow); }
.sk a.sk-btn--white { background: #fff; color: var(--sk-ink); }
.sk :focus-visible { outline: 3px solid var(--sk-ink); outline-offset: 3px; }
.sk [hidden] { display: none !important; }

/* 1. Le grand cadran qui donne l'heure */
.sk-hero { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding: clamp(36px, 5vw, 80px) clamp(24px, 4.5vw, 72px); border-radius: 40px; background: var(--sk-yellow); overflow: hidden; }
.sk-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.55) 3px, transparent 3.5px); background-size: 34px 34px; opacity: .6; pointer-events: none; }
.sk-hero__text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; }
.sk-hero__title { font-family: var(--ucs-font-head); font-weight: 700; font-size: clamp(2.8rem, 6.6vw, 6rem); line-height: .92; letter-spacing: -.02em; text-wrap: balance; }
.sk-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px !important; }
.sk-hero__clock { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 6% 0; }
.sk-clock { width: min(100%, 440px); aspect-ratio: 1; padding: 5.5%; box-sizing: border-box; border-radius: 50%; background: var(--sk-orange); box-shadow: 0 18px 0 rgba(0,0,0,.12), inset 0 -10px 0 rgba(0,0,0,.1); }
.sk-clock svg { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 10px rgba(0,0,0,.08); }
.sk-clock [data-hand] { transform-box: view-box; transform-origin: 3685.125px 3685.125px; /* centre du cadran (unités du dessin) : le cadran du jeu a un viewBox décalé de 50, 50 % tomberait à côté */ transition: transform .35s cubic-bezier(.4,1.7,.6,1); }
.sk-clock__time { padding: 8px 18px; border-radius: 999px; background: #fff; font-family: var(--ucs-font-head); font-weight: 700; font-size: 1.15rem; }
.sk-float { position: absolute; width: clamp(64px, 8vw, 112px); height: auto; filter: drop-shadow(0 6px 0 rgba(0,0,0,.1)); animation: sk-bob 5s ease-in-out infinite; pointer-events: none; }
.sk-float--0 { top: 0; left: 2%; animation-delay: -1s; }
.sk-float--1 { top: 4%; right: 0; animation-delay: -2.4s; }
.sk-float--2 { bottom: 16%; left: -4%; animation-delay: -.4s; }
.sk-float--3 { bottom: 10%; right: -2%; animation-delay: -3.3s; }
.sk-float--4 { top: 42%; right: -8%; width: clamp(48px, 6vw, 84px); animation-delay: -1.8s; }
.sk-float--5 { top: 40%; left: -9%; width: clamp(48px, 6vw, 84px); animation-delay: -4.1s; }
@keyframes sk-bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }

/* 2. Autocollants */
.sk-stickers { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; margin-top: calc(-1 * clamp(20px, 3vw, 56px)) !important; padding: 0; list-style: none; }
.sk-stickers li { display: flex; align-items: baseline; gap: 8px; padding: 14px 22px; border-radius: 22px; color: #fff; font-size: 1rem; box-shadow: 0 6px 0 rgba(0,0,0,.12); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.sk-stickers li b { font-family: var(--ucs-font-head); font-weight: 700; font-size: 1.25rem; }
.sk-stickers li:nth-child(1) { transform: rotate(-3deg); }
.sk-stickers li:nth-child(2) { transform: rotate(2deg); }
.sk-stickers li:nth-child(3) { transform: rotate(-1.5deg); }
.sk-stickers li:nth-child(4) { transform: rotate(3deg); }
.sk-stickers li:hover { transform: rotate(0) scale(1.06); }
.sk-stickers .is-blue { background: var(--sk-blue); color: var(--sk-ink); }
.sk-stickers .is-green { background: var(--sk-green); color: var(--sk-ink); }
.sk-stickers .is-purple { background: var(--sk-purple); }
.sk-stickers .is-red { background: var(--sk-red); color: var(--sk-ink); }

/* 3. Les héros */
.sk-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: clamp(22px, 3vw, 36px); }
.sk-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.sk button.sk-chip { min-height: 44px; margin: 0; padding: 0 20px; border: 2px solid var(--sk-ink); border-radius: 999px; background: #fff; color: var(--sk-ink); font-family: var(--ucs-font-head); font-weight: 700; font-size: 1rem; cursor: pointer; transition: background .15s, color .15s, transform .2s cubic-bezier(.3,1.6,.5,1); }
.sk button.sk-chip:hover { transform: translateY(-2px); background: #fff; color: var(--sk-ink); }
.sk button.sk-chip[aria-pressed="true"] { background: var(--sk-ink); color: #fff; }
.sk-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); margin: 0; padding: 0; list-style: none; }
.sk-card { display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 16px; border-radius: 30px; background: color-mix(in srgb, var(--tint) 34%, #ffffff); animation: sk-pop .45s cubic-bezier(.3,1.5,.5,1) both; }
.sk-card[hidden] { display: none; }
.sk-card__link { display: flex; flex-direction: column; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.sk-card__media { display: block; width: 100%; aspect-ratio: 1; border-radius: 22px; background: rgba(255,255,255,.7); }
.sk-card__media img { display: block; box-sizing: border-box; width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.sk-card__link:hover .sk-card__media img { animation: sk-wiggle .6s ease-in-out; }
.sk-card__name { font-family: var(--ucs-font-head); font-weight: 700; font-size: clamp(1.2rem, 1.6vw, 1.5rem); }
.sk-card .ucss-add-to-cart { margin: 0; }
.sk-card .ucss-button { width: 100%; min-height: 46px; border-radius: 999px; }
@keyframes sk-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-7deg) scale(1.05); } 60% { transform: rotate(6deg) scale(1.05); } }
@keyframes sk-pop { from { opacity: 0; transform: scale(.9) translateY(10px); } to { opacity: 1; transform: none; } }

/* 4. Le petit jeu */
.sk-game { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding: clamp(32px, 5vw, 72px) clamp(24px, 4.5vw, 72px); border-radius: 40px; background: var(--sk-blue); overflow: hidden; }
.sk-game__text { display: flex; flex-direction: column; gap: 18px; }
.sk-game__score { align-self: flex-start; padding: 8px 18px; border-radius: 999px; background: #fff; font-weight: 700; }
.sk-game__score span { font-family: var(--ucs-font-head); font-weight: 700; }
.sk-game__play { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sk-clock--game { width: min(100%, 420px); padding: 1.5%; background: #fff; }
.sk-clock--game svg { box-shadow: none; }
.sk-answers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sk button.sk-answer { min-width: 120px; min-height: 56px; margin: 0; padding: 0 22px; border: 0; border-radius: 18px; color: var(--sk-ink); font-family: var(--ucs-font-head); font-weight: 700; font-size: 1.25rem; box-shadow: 0 5px 0 rgba(0,0,0,.18); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.sk button.sk-answer:nth-child(1) { background: var(--sk-yellow); }
.sk button.sk-answer:nth-child(2) { background: #fff; }
.sk button.sk-answer:nth-child(3) { background: var(--sk-green); }
.sk button.sk-answer:hover { transform: translateY(-2px); }
.sk button.sk-answer:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.sk button.sk-answer.is-wrong { animation: sk-shake .4s; opacity: .55; }
.sk button.sk-answer.is-right { box-shadow: 0 0 0 4px var(--sk-ink); }
.sk-game__msg { min-height: 1.6em; font-family: var(--ucs-font-head); font-weight: 700; font-size: 1.4rem; }
.sk-confetti { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.sk-confetti i { position: absolute; top: 30%; left: 50%; width: 10px; height: 14px; border-radius: 3px; animation: sk-confetti 1.1s ease-out forwards; }
@keyframes sk-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
@keyframes sk-confetti { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* 5. Crée ta Superkids */
.sk-create { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.sk-create__text { display: flex; flex-direction: column; gap: 18px; }
.sk-create__price { margin-left: 12px; font-weight: 700; white-space: nowrap; }
.sk-create__price del { opacity: .5; font-weight: 400; margin-right: 6px; }
.sk-create__price ins { text-decoration: none; color: var(--ucss-danger, #d92d20); }
.sk-create__clips { overflow: hidden; padding: 20px 0; border-radius: 40px; background: var(--sk-purple); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.sk-marquee { display: flex; gap: 18px; width: max-content; animation: sk-marquee 40s linear infinite; }
.sk-marquee span { flex: 0 0 auto; display: grid; place-items: center; width: clamp(110px, 12vw, 160px); aspect-ratio: 1; border-radius: 28px; background: #fff; }
.sk-marquee span:nth-child(odd) { transform: rotate(-4deg); }
.sk-marquee span:nth-child(even) { transform: rotate(3deg) translateY(10px); }
.sk-marquee img { width: 78%; height: 78%; object-fit: contain; }
@keyframes sk-marquee { to { transform: translateX(-50%); } }

/* 6. Cadeau */
.sk-gift { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(28px, 4vw, 52px) clamp(24px, 4.5vw, 72px); border-radius: 40px; background: var(--sk-orange); }

/* Tablette et téléphone */
@media (max-width: 1240px) { .sk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
	.sk-hero, .sk-game, .sk-create { grid-template-columns: 1fr; }
	.sk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sk-hero__clock { padding: 4% 12%; }
}
@media (max-width: 640px) {
	.sk-hero { border-radius: 30px; }
	.sk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.sk-card { padding: 10px 10px 12px; border-radius: 24px; }
	.sk-card .ucss-button { min-height: 42px; padding: 0 10px; font-size: .9rem; }
	.sk-stickers { margin-top: 0 !important; }
	.sk-stickers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.sk-stickers li { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; font-size: .92rem; line-height: 1.3; }
	.sk-game, .sk-gift { border-radius: 30px; }
	.sk button.sk-answer { min-width: 96px; font-size: 1.1rem; }
	.sk-hero__clock { padding: 6% 10%; }
}
@media (prefers-reduced-motion: reduce) {
	.sk *, .sk *::before { animation: none !important; transition: none !important; }
}

/* Après 2 bonnes réponses : l'application pour continuer */
.sk-app { position: absolute; inset: -8px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px; border-radius: 32px; background: var(--sk-yellow); text-align: center; box-shadow: 0 10px 0 rgba(0,0,0,.14); animation: sk-pop .5s cubic-bezier(.3,1.5,.5,1) both; }
.sk-app__title { font-family: var(--ucs-font-head); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.05; }
.sk-app__text { max-width: 30ch; font-size: 1.05rem; line-height: 1.45; }
.sk-app__stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sk a.sk-store { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px 0 16px; border-radius: 16px; background: var(--sk-ink); color: #fff; text-decoration: none; transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.sk a.sk-store:hover { transform: translateY(-3px) rotate(-1.5deg); color: #fff; }
.sk-store span { display: flex; flex-direction: column; font-family: var(--ucs-font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.1; text-align: left; }
.sk-store small { font-family: var(--ucs-font-text); font-weight: 500; font-size: .72rem; opacity: .85; }
.sk-app__shop { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 4px 0 0; }
