/* Famille Moumoutte — site CSS (mobile first, no framework) */
:root {
  --purple: #3b2a6b;
  --purple-d: #271a4a;
  --purple-l: #ece6fb;
  --orange: #ff8a1f;
  --orange-d: #d86400;
  --pink: #ff7ab8;
  --green: #4f9d49;
  --cream: #fff7ea;
  --paper: #ffffff;
  --ink: #2b2147;
  --muted: #6b6290;
  --line: #eadfc9;
  --radius: 22px;
  --shadow: 0 8px 24px rgba(59, 42, 107, 0.14);
  --font-head: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; }
img, iframe, canvas { max-width: 100%; }
img { height: auto; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--orange-d); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--purple); margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 4vw, 2.2rem); margin-top: 2.2em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--purple); color: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; }
.brand b { color: var(--orange); font-weight: 800; }
.brand-img { height: 46px; width: auto; margin-top: -2px; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--purple-d); flex-direction: column; padding: 10px 16px 18px; gap: 4px; }
.nav.open { display: flex; }
.nav a { color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 12px; font-weight: 700; }
.nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav .nav-cta { background: var(--orange); color: #2a1500; text-align: center; }
.nav .nav-cta:hover { background: #ffa247; color: #2a1500; }
.nav-toggle { background: none; border: 0; padding: 10px; display: grid; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; border-radius: 3px; background: #fff; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { display: flex; position: static; flex-direction: row; background: none; padding: 0; align-items: center; gap: 2px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; background: var(--orange); color: #2a1500; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; padding: .7em 1.4em; border: 0; border-radius: 999px; text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 var(--orange-d); transition: transform .1s, box-shadow .1s; }
.btn:hover { color: #2a1500; transform: translateY(-1px); box-shadow: 0 6px 0 var(--orange-d); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--orange-d); }
.btn-ghost { background: #fff; color: var(--purple); box-shadow: 0 5px 0 var(--line); border: 2px solid var(--line); }
.btn-ghost:hover { color: var(--purple); box-shadow: 0 6px 0 var(--line); }
.btn-purple { background: var(--purple); color: #fff; box-shadow: 0 5px 0 var(--purple-d); }
.btn-purple:hover { color: #fff; box-shadow: 0 6px 0 var(--purple-d); }
.btn-small { font-size: .95rem; padding: .45em 1.1em; box-shadow: 0 3px 0 var(--orange-d); }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* hero */
.hero { background: linear-gradient(180deg, #3b2a6b 0%, #5a3f9b 55%, #ff8a1f 130%); color: #fff; padding: 36px 0 0; overflow: hidden; }
.hero h1 { color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.hero .lead { font-size: 1.2rem; max-width: 40em; color: #f4eeff; }
.hero-grid { display: grid; gap: 22px; align-items: center; }
.hero-art { margin: 8px -16px 0; }
.hero-art img { display: block; width: 100%; border-radius: 26px 26px 0 0; box-shadow: 0 -6px 30px rgba(0, 0, 0, .25); }
.hero .btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .5); box-shadow: none; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .25); color: #fff; box-shadow: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.crumbs { font-size: .92rem; margin-bottom: 14px; color: #d9cffb; }
.crumbs a { color: #fff; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .7; }
@media (min-width: 900px) {
  .hero { padding-top: 54px; }
  .hero-grid { grid-template-columns: 1fr 1.15fr; gap: 38px; }
  .hero-art { margin: 0; }
}

/* sections */
main section { padding: 8px 0; }
.sec-intro { max-width: 46em; color: var(--muted); font-size: 1.1rem; }
.card-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 2px solid transparent; transition: transform .15s, border-color .15s; }
a.card { text-decoration: none; color: var(--ink); }
a.card:hover { transform: translateY(-4px); border-color: var(--orange); color: var(--ink); }
.card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #cfe9ff; }
.card .body { padding: 14px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.tag { display: inline-block; align-self: flex-start; background: var(--purple-l); color: var(--purple); font-weight: 800; font-size: .8rem; padding: 2px 10px; border-radius: 999px; }
.tag.orange { background: #ffe5c8; color: var(--orange-d); }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--orange-d); }
.chars { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.char { width: 150px; text-align: center; }
.char .pic { background: radial-gradient(circle at 50% 70%, #fff 0, #ffe9cf 70%); border-radius: 50%; height: 150px; display: flex; justify-content: center; align-items: flex-start; overflow: hidden; border: 3px solid #fff; box-shadow: var(--shadow); }
.char img { width: 230px; max-width: none; height: auto; margin-top: -148px; flex: none; }
.char b { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--purple); margin-top: 8px; }
.char span { font-size: .9rem; color: var(--muted); line-height: 1.3; display: block; }

/* video */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 4px solid #fff; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* article */
.article { display: grid; gap: 28px; }
.prose { max-width: 46em; }
.prose h2:first-child { margin-top: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 22px 0; }
.fact { background: var(--paper); border-radius: 18px; padding: 14px; text-align: center; box-shadow: var(--shadow); }
.fact b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--orange-d); line-height: 1.1; }
.fact span { font-size: .9rem; color: var(--muted); }
.box { background: var(--paper); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); border-left: 8px solid var(--orange); }
.box h3 { margin-top: 0; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 1.8em; position: relative; margin: .5em 0; }
.ticks li::before { content: "🎃"; position: absolute; left: 0; }
.play-band { background: var(--purple); color: #fff; border-radius: 28px; padding: 26px 22px; display: grid; gap: 18px; }
.play-band h2 { color: #fff; margin: 0 0 4px; }
.play-band p { margin: 0; color: #e6defb; }
.play-band .card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.next { display: grid; gap: 18px; background: var(--paper); border-radius: 28px; padding: 18px; box-shadow: var(--shadow); align-items: center; }
.next img { border-radius: 18px; width: 100%; }
@media (min-width: 760px) { .next { grid-template-columns: 1fr 1.2fr; padding: 24px; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 52em; }
.faq details { background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); border: 2px solid transparent; }
.faq details[open] { border-color: var(--orange); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--purple); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #2a1500; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 20px 16px; color: #3a3160; }
.faq .answer p:last-child { margin-bottom: 0; }

/* footer */
.site-footer { margin-top: 70px; background: var(--purple-d); color: #d9d0f2; padding: 40px 0 18px; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; gap: 26px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-title { font-family: var(--font-head); font-size: 1.2rem; color: #fff; margin: 0 0 8px; }
.foot-title b { color: var(--orange); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35em 0; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 28px; padding-top: 14px; font-size: .9rem; }

/* consent */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); padding: 14px 18px; display: grid; gap: 10px; max-width: 640px; margin-inline: auto; border: 3px solid var(--orange); font-size: .95rem; line-height: 1.45; }
.consent[hidden] { display: none; }
.consent p { margin: 0; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* 404 / legal */
.center { text-align: center; padding: 60px 0; }

/* ───────────── mini-games ───────────── */
.game-zone { background: #1f1440; padding-bottom: 22px; border-bottom: 6px solid var(--orange); }
.game-top { background: var(--purple); color: #fff; padding: 14px 0 10px; }
.game-top h1 { color: #fff; font-size: clamp(1.5rem, 4.5vw, 2.3rem); margin: 0; }
.game-top p { margin: 4px 0 0; color: #e6defb; }
.game-wrap { width: min(1120px, 100% - 16px); margin: 12px auto 0; }
.stage { position: relative; aspect-ratio: 16 / 9; background: #cfe9ff; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); border: 4px solid #fff; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.stage .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.actor { position: absolute; pointer-events: none; transform-origin: 50% 100%; animation: bob 3.2s ease-in-out infinite; }
.actor img { display: block; width: 100%; height: auto; }
.actor.flip img { transform: scaleX(-1); }
.actor.talking { animation: talk .34s ease-in-out infinite; }
.actor.cheer { animation: hop .55s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-1.1%) rotate(.6deg); } }
@keyframes talk { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-2.2%) scale(1.03, .98); } }
@keyframes hop { 0%, 100% { transform: translateY(0) scale(1.02, .96); } 50% { transform: translateY(-9%) scale(.98, 1.04); } }
.hit { position: absolute; transform: translate(-50%, -50%); aspect-ratio: 1; border-radius: 50%; border: 0; background: transparent; padding: 0; cursor: pointer; z-index: 20; }
.hit:focus-visible { outline: 3px dashed #fff; }
.hit.found { pointer-events: none; }
.ring { position: absolute; transform: translate(-50%, -50%); aspect-ratio: 1; border-radius: 50%; border: 5px solid #ffd23f; box-shadow: 0 0 0 4px rgba(255, 138, 31, .7), 0 0 24px 6px rgba(255, 210, 63, .9); pointer-events: none; z-index: 30; animation: ring 1.1s ease-out forwards; }
.ring.keep { animation: none; border-color: rgba(255, 210, 63, .9); box-shadow: 0 0 0 3px rgba(255, 255, 255, .7); }
@keyframes ring { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.5); opacity: .0; } }
.ring.hint { border-color: #fff; animation: hint 1s ease-in-out 3; opacity: 0; }
@keyframes hint { 0%, 100% { transform: translate(-50%, -50%) scale(.8); opacity: 0; } 50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } }
.star { position: absolute; z-index: 35; pointer-events: none; font-size: clamp(14px, 3vw, 30px); animation: fly 1s ease-out forwards; }
@keyframes fly { to { transform: translate(var(--dx), var(--dy)) scale(.4) rotate(200deg); opacity: 0; } }
.miss { position: absolute; z-index: 35; pointer-events: none; transform: translate(-50%, -50%); font-size: clamp(18px, 4vw, 38px); animation: miss .7s ease-out forwards; }
@keyframes miss { to { transform: translate(-50%, -120%) scale(1.4); opacity: 0; } }
.bubble { position: absolute; z-index: 40; background: #fff; color: var(--ink); border: 3px solid var(--purple); border-radius: 18px; padding: 6px 14px; font-family: var(--font-head); font-weight: 700; font-size: clamp(.8rem, 2.5vw, 1.35rem); line-height: 1.25; max-width: 46%; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transform: translate(-50%, -100%); pointer-events: none; animation: pop .22s ease-out; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 18px; height: 18px; background: #fff; border-right: 3px solid var(--purple); border-bottom: 3px solid var(--purple); transform: translateX(-50%) rotate(45deg); }
.bubble small { display: block; color: var(--orange-d); font-size: .7em; font-weight: 800; }
@keyframes pop { from { transform: translate(-50%, -90%) scale(.7); opacity: 0; } }
.guide { position: absolute; left: 1.5%; bottom: 1%; width: 17%; z-index: 12; pointer-events: none; }
.guide img { width: 100%; display: block; }
.overlay { position: absolute; inset: 0; z-index: 60; background: rgba(39, 26, 74, .78); backdrop-filter: blur(3px); display: grid; place-items: center; text-align: center; color: #fff; padding: 16px; }
.overlay[hidden] { display: none; }
.overlay h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.4rem, 5vw, 2.6rem); }
.overlay p { margin: 0 0 14px; color: #efe9ff; font-size: clamp(.95rem, 2.4vw, 1.2rem); }
.overlay .btn { font-size: clamp(1.1rem, 3.4vw, 1.7rem); }
.overlay .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.confetti { position: absolute; inset: 0; z-index: 55; pointer-events: none; width: 100%; height: 100%; }
.hud { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 4px 0; color: #fff; }
.hud .count { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; background: var(--orange); color: #2a1500; padding: 2px 14px; border-radius: 999px; }
.hud .round { font-family: var(--font-head); font-weight: 700; color: #ffd9a8; }
.hud .spacer { flex: 1; }
.hud button { background: #fff; color: var(--purple); border: 0; border-radius: 999px; font-weight: 800; padding: 6px 14px; cursor: pointer; font-family: var(--font-body); font-size: .95rem; }
.hud button:hover { background: #ffe5c8; }
.items { list-style: none; margin: 8px 0 0; padding: 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; background: #2f2060; border-radius: 20px; }
.items li { background: #fff; border-radius: 16px; padding: 6px 4px 4px; text-align: center; font-size: .78rem; font-weight: 800; color: var(--purple); line-height: 1.15; position: relative; transition: transform .2s; }
.items img { width: 62px; height: 62px; display: block; margin: 0 auto 2px; filter: brightness(0) opacity(.35); transition: filter .3s; }
.items li.done img { filter: none; }
.items li.done { background: #dffbd6; transform: scale(1.04); }
.items li.done::after { content: "✔"; position: absolute; top: -6px; right: -4px; background: var(--green); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; }
.items li .nm { display: block; }
.items li:not(.done) .nm { color: #9a93b8; }
.game-more { color: #e6defb; }
.game-more h2 { color: #fff; }
.game-more a.card { color: var(--ink); }
.noscript { background: #fff; padding: 20px; border-radius: 16px; margin: 16px; }
@media (prefers-reduced-motion: reduce) {
  .actor, .actor.talking, .actor.cheer { animation: none; }
  html { scroll-behavior: auto; }
}
.char img[src*="-papa-"], .char img[src*="-maman-"] { margin-top: -108px; }
@media (max-width: 600px) {
  .items { grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px; }
  .items img { width: 46px; height: 46px; }
  .items li { font-size: .68rem; padding: 4px 2px 3px; }
  .game-wrap { width: calc(100% - 12px); }
}
