/* Les P'tits Patients — même univers que les vidéos : crème, bleu marine, couleurs vives, formes rondes. */
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --cream: #FFF8E7; --paper: #FFFFFF; --navy: #1D3557; --navy-2: #2B4C7E; --muted: #4A5B72;
  --sun: #FFC93C; --sun-d: #FF9F1C; --orange: #FF7B54; --orange-d: #C94A26; --purple: #9B5DE5; --purple-d: #6E35B8;
  --teal: #2EC4B6; --teal-d: #1A8F84; --blue: #4D96FF; --pink: #FF8FAB; --green: #06D6A0; --green-d: #04805F;
  --sky: #BDE0FE; --mint: #CBF3F0; --red: #EF476F; --peach: #FFE8D6;
  --radius: 24px; --line: 3px solid var(--navy); --lift: 0 6px 0 var(--navy);
  --display: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--navy); font-family: var(--body); font-size: 18px; line-height: 1.6; font-weight: 500; overflow-x: hidden; }
img, video, svg { max-width: 100%; display: block; }
a { color: var(--navy-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--purple-d); }
:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); padding: 8px 16px; border: var(--line); border-radius: 999px; z-index: 10; }
.skip:focus { left: 16px; }

/* bandeau « version de travail » */
.draft { background: var(--navy); color: #fff; text-align: center; font-size: 15px; padding: 8px 16px; font-weight: 600; }
.draft strong { color: var(--sun); }

/* ---------- en-tête ---------- */
.top { padding-block: 14px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 76px; width: auto; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a { font-family: var(--display); font-weight: 600; font-size: 17px; text-decoration: none; color: var(--navy); padding: 8px 16px; border-radius: 999px; border: 3px solid transparent; transition: background .15s, border-color .15s; white-space: nowrap; }
.nav a:hover { background: #fff; border-color: var(--navy); }
.nav a[aria-current="page"] { background: var(--sun); border-color: var(--navy); }
@media (max-width: 760px) {
  .top .wrap { justify-content: center; }
  .brand img { height: 62px; }
  .nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 16px; padding: 6px 14px; }
}

/* ---------- boutons & cartes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.2;
  color: var(--navy); background: var(--sun); border: var(--line); border-radius: 999px; padding: 12px 24px; text-decoration: none; cursor: pointer;
  box-shadow: 0 5px 0 var(--navy); transition: transform .08s, box-shadow .08s, background .15s; min-height: 52px; }
.btn:hover { background: #FFD666; color: var(--navy); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--navy); }
.btn.alt { background: #fff; }
.btn.alt:hover { background: var(--mint); }
.btn.purple { background: var(--purple); color: #fff; }
.btn.purple:hover { background: #A974EA; color: #fff; }
.btn.small { font-size: 16px; padding: 8px 16px; min-height: 44px; }
.card { background: var(--paper); border: var(--line); border-radius: var(--radius); box-shadow: var(--lift); }
.pill { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 15px; padding: 3px 14px; border-radius: 999px; border: 2px solid var(--navy); background: #fff; }
.pill.sun { background: var(--sun); } .pill.teal { background: var(--teal); color: #fff; } .pill.purple { background: var(--purple); color: #fff; }
.pill.orange { background: var(--orange); color: #fff; } .pill.grey { background: #E9EDF3; }

/* ---------- sections ---------- */
section { padding-block: 40px; }
.sec-head { display: grid; gap: 8px; margin-bottom: 24px; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 44px); }
.sec-head p { color: var(--muted); max-width: 62ch; font-size: 19px; }
.squiggle { display: inline-block; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8 Q 17 1 32 7 T 62 7 T 92 7 T 118 6' fill='none' stroke='%23FF7B54' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") bottom left / 100% 12px no-repeat; padding-bottom: 12px; }

/* ---------- accueil ---------- */
.hero { padding-block: 16px 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); }
.hero h1 .o { color: var(--orange); } .hero h1 .p { color: var(--purple); }
.hero .lead { font-size: clamp(19px, 2.2vw, 22px); margin-top: 18px; max-width: 34ch; }
.hero .doc { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-weight: 600; }
.hero .doc .steth { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; left: 50%; top: 56%; width: 84%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--sky); z-index: -1; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { max-width: 520px; margin: 0 auto; } .hero .lead { max-width: none; } }

.grid-ep { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.ep { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--navy); transition: transform .15s; }
.ep:hover { transform: translateY(-4px) rotate(-0.4deg); color: var(--navy); }
.ep .thumb { position: relative; aspect-ratio: 16 / 9; border-bottom: var(--line); background: var(--sky); }
.ep .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep .thumb .play { position: absolute; right: 14px; bottom: 14px; width: 54px; height: 54px; border-radius: 50%; background: var(--sun); border: var(--line); display: grid; place-items: center; box-shadow: 0 3px 0 var(--navy); }
.ep .soon { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(29,53,87,.45); }
.ep .body { padding: 16px 20px 20px; display: grid; gap: 6px; }
.ep .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ep h3 { font-size: 24px; }
.ep p { color: var(--muted); font-size: 17px; }
.ep .stars { margin-left: auto; font-size: 15px; font-weight: 700; color: var(--orange-d); }

.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.tile { padding: 24px; display: grid; gap: 12px; align-content: start; text-decoration: none; color: var(--navy); }
.tile:hover { color: var(--navy); background: #FFFDF6; }
.tile .ico { width: 84px; height: 84px; border-radius: 22px; border: var(--line); display: grid; place-items: center; }
.tile h3 { font-size: 26px; }
.tile p { color: var(--muted); }

.sophie-band .card { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 28px; background: var(--navy); color: #fff; box-shadow: 0 6px 0 var(--sun); }
.sophie-band h2 { font-size: clamp(26px, 3.6vw, 36px); color: var(--sun); }
.sophie-band p { margin-top: 10px; font-size: 19px; max-width: 70ch; }
.sophie-band a { color: #fff; }
.voicebadge { width: 140px; height: 140px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255,255,255,.18), 0 0 0 22px rgba(255,255,255,.08); }
@media (max-width: 640px) { .sophie-band .card { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ---------- page épisode ---------- */
.ep-head { display: grid; gap: 10px; padding-block: 8px 20px; }
.ep-head h1 { font-size: clamp(34px, 5.4vw, 58px); }
.ep-head .sub { font-size: 21px; color: var(--muted); }
.player { overflow: hidden; background: #000; }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player .placeholder { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; background: var(--sky); }
.player .placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.player .placeholder .msg { position: relative; padding: 14px 24px; text-align: center; }
.cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; margin-top: 32px; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.box { padding: 26px; }
.box h2 { font-size: 30px; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.retenir { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.retenir li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.retenir li::before { content: "✓"; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; border: 2px solid var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
details.parents { margin-top: 28px; }
details.parents summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 22px; padding: 18px 24px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
details.parents summary::-webkit-details-marker { display: none; }
details.parents summary::after { content: "+"; font-size: 30px; line-height: 1; }
details.parents[open] summary::after { content: "–"; }
details.parents .in { padding: 0 24px 24px; display: grid; gap: 12px; }
details.parents ul { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.next { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; }

/* ---------- quiz ---------- */
.quiz { padding: 26px; background: var(--peach); }
.quiz .progress { display: flex; gap: 6px; margin-bottom: 16px; }
.quiz .progress span { flex: 1; height: 10px; border-radius: 99px; background: #fff; border: 2px solid var(--navy); }
.quiz .progress span.done { background: var(--green); } .quiz .progress span.miss { background: var(--orange); } .quiz .progress span.now { background: var(--sun); }
.quiz .q { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.25; margin-bottom: 16px; }
.quiz .answers { display: grid; gap: 12px; }
.quiz .answers button { font: inherit; font-weight: 700; font-size: 18px; text-align: left; padding: 14px 18px; border-radius: 18px; border: var(--line); background: #fff; color: var(--navy); cursor: pointer; box-shadow: 0 4px 0 var(--navy); transition: transform .08s; min-height: 56px; }
.quiz .answers button:hover:not(:disabled) { background: var(--mint); }
.quiz .answers button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.quiz .answers button.good { background: var(--green); color: var(--navy); }
.quiz .answers button.bad { background: #FFB3A1; }
.quiz .answers button:disabled { cursor: default; }
.quiz .why { margin-top: 16px; padding: 14px 18px; border-radius: 18px; background: #fff; border: 2px dashed var(--navy); font-weight: 600; }
.quiz .row { display: flex; justify-content: flex-end; margin-top: 16px; }
.quiz .end { text-align: center; display: grid; gap: 14px; justify-items: center; }
.quiz .end .big { font-family: var(--display); font-size: 56px; font-weight: 700; color: var(--orange-d); line-height: 1; }

/* ---------- jeu ---------- */
.game { padding: 20px; background: linear-gradient(#EAF3FF, #FFF8E7); position: relative; overflow: hidden; touch-action: none; }
.game-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.game-top .count { font-family: var(--display); font-weight: 700; font-size: 22px; }
.game-area { display: grid; grid-template-columns: 1fr minmax(240px, 0.8fr); gap: 20px; align-items: center; }
@media (max-width: 760px) { .game-area { grid-template-columns: 1fr; } }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.item { position: relative; aspect-ratio: 1; border-radius: 20px; border: var(--line); background: #fff; box-shadow: 0 4px 0 var(--navy); display: grid; place-items: center; padding: 8px; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.item img { width: 78%; height: 78%; object-fit: contain; pointer-events: none; }
.item .nm { position: absolute; left: 4px; right: 4px; bottom: 4px; font-size: 12px; font-weight: 800; text-align: center; line-height: 1.1; }
.item.dragging { cursor: grabbing; z-index: 50; box-shadow: 0 14px 20px rgba(29,53,87,.25); }
.item.gone { visibility: hidden; }
.item.shake { animation: shake .4s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.bag { position: relative; display: grid; justify-items: center; gap: 8px; }
.bag img { width: min(100%, 300px); transition: transform .2s; }
.bag.hot img { transform: scale(1.06) rotate(-2deg); }
.bag .inbag { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 44px; }
.bag .inbag img { width: 40px; height: 40px; object-fit: contain; }
.bubble { margin-top: 8px; padding: 16px 20px; border-radius: 22px; border: var(--line); background: #fff; font-weight: 700; display: flex; gap: 14px; align-items: center; min-height: 72px; }
.bubble .who { flex: none; font-family: var(--display); font-size: 15px; padding: 2px 12px; border-radius: 999px; background: var(--navy); color: #fff; }
.win { position: absolute; inset: 0; display: none; place-items: center; background: rgba(255,248,231,.94); z-index: 60; text-align: center; padding: 20px; }
.win.on { display: grid; }
.win h2 { font-size: clamp(32px, 5vw, 48px); }

/* ---------- fiches ---------- */
.print-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.fiche { overflow: hidden; display: flex; flex-direction: column; }
.fiche .pv { aspect-ratio: 4 / 3; background: var(--sky); border-bottom: var(--line); display: grid; place-items: center; padding: 16px; }
.fiche .pv img { max-height: 100%; object-fit: contain; }
.fiche .body { padding: 18px 20px 22px; display: grid; gap: 10px; flex: 1; align-content: start; }
.fiche h3 { font-size: 24px; }
.fiche p { color: var(--muted); font-size: 17px; }
.fiche .btn { justify-self: start; margin-top: 6px; }

/* ---------- parents ---------- */
.prose { display: grid; gap: 16px; max-width: 75ch; }
.prose h2 { font-size: 32px; margin-top: 16px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.alert { padding: 24px; background: #FFF0F3; border-color: var(--red); box-shadow: 0 6px 0 var(--red); }
.alert h2 { color: #B3123C; }
.numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.num { padding: 18px; display: grid; gap: 4px; }
.num .n { font-family: var(--display); font-weight: 700; font-size: 42px; line-height: 1; color: var(--red); }
.num .l { font-family: var(--display); font-weight: 600; font-size: 20px; }
.num .d { color: var(--muted); font-size: 16px; }
.themes { display: grid; gap: 20px; }
.theme { padding: 22px 24px; display: grid; gap: 10px; }
.theme h3 { font-size: 24px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.theme ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }

/* ---------- pied de page ---------- */
footer { margin-top: 48px; background: var(--navy); color: #DCE6F2; padding-block: 36px; font-size: 16px; }
footer .wrap { display: grid; gap: 18px; }
footer .warn { background: rgba(255,255,255,.08); border-radius: 16px; padding: 14px 18px; color: #fff; font-weight: 600; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: #fff; }
footer .fine { color: #AFC0D6; font-size: 14px; }

/* confettis */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 12px; height: 18px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .confetti { display: none; }
}

/* jeu sur téléphone : le sac et le message de Sophie au-dessus des objets */
@media (max-width: 760px) {
  .bag { order: -1; grid-template-columns: 110px 1fr; align-items: center; justify-items: stretch; column-gap: 12px; }
  .bag > img { width: 110px; height: auto; grid-row: span 2; }
  .bag .inbag { justify-content: flex-start; min-height: 40px; }
  .bag .bubble { margin-top: 0; min-height: 0; padding: 10px 14px; font-size: 16px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .items { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .item .nm { font-size: 11px; }
}

/* ---------- ajouts : bande-annonce, parcours, personnages ---------- */
.trailer { padding-block: 8px 24px; }
.trailer-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px 36px; align-items: center; }
.trailer .txt { display: grid; gap: 14px; justify-items: start; }
.trailer h2 { font-size: clamp(26px, 3.4vw, 36px); }
.trailer p { font-size: 19px; color: var(--muted); }
@media (max-width: 860px) { .trailer-in { grid-template-columns: 1fr; } }

.parcours { display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; padding: 16px 22px; margin-bottom: 28px; background: #FFFDF6; }
.parcours h3 { font-size: 22px; }
.parcours .msg { color: var(--muted); font-weight: 600; }
.stars6 { display: flex; gap: 4px; font-size: 34px; line-height: 1; }
.stars6 span { color: #DDE3EC; -webkit-text-stroke: 2px var(--navy); }
.stars6 span.on { color: var(--sun); }

.ep .thumb .seen { position: absolute; left: 12px; top: 12px; font-family: var(--display); font-weight: 600; font-size: 15px; padding: 3px 12px; border-radius: 999px; background: var(--green); border: 2px solid var(--navy); color: var(--navy); }
.ep .thumb .seen[hidden] { display: none; }

.chars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.char { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 18px 20px; }
.char img { width: 110px; height: auto; }
.char h3 { font-size: 24px; margin-bottom: 6px; }
.char p { color: var(--muted); font-size: 17px; }

.tile .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.done { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--green-d); }
.done[hidden] { display: none; }

/* ---------- ajouts : page épisode ---------- */
.after-video { margin-top: 16px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; background: #E9FBF4; }
.after-video[hidden] { display: none; }
.chapters { margin-top: 20px; }
.chapters h2 { font-size: 22px; margin-bottom: 10px; }
.chapters ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chapters a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 2px solid var(--navy); border-radius: 999px; background: #fff; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.25; min-height: 44px; }
.chapters a:hover { background: var(--mint); }
.chapters a[aria-current] { background: var(--sun); }
.chapters .t, .transcript .ts { flex: none; font-family: var(--display); font-weight: 600; font-size: 14px; padding: 2px 10px; border-radius: 999px; background: var(--navy); color: #fff; }
details.transcript { margin-top: 28px; }
details.transcript summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 22px; padding: 18px 24px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
details.transcript summary::-webkit-details-marker { display: none; }
details.transcript summary::after { content: "+"; font-size: 30px; line-height: 1; }
details.transcript[open] summary::after { content: "–"; }
.transcript .in { padding: 0 24px 24px; display: grid; gap: 10px; max-height: 70vh; overflow-y: auto; }
.transcript .in p { display: block; }
.transcript .ts { display: inline-block; margin-right: 8px; text-decoration: none; vertical-align: 2px; }
.transcript .ts:hover { background: var(--purple-d); color: #fff; }
.transcript .who { font-family: var(--display); font-weight: 700; margin-right: 6px; }
.transcript .who.sophie { color: var(--navy); } .transcript .who.ines { color: #7B3FC4; } .transcript .who.leo { color: #C2410C; }

/* ---------- ajouts : quiz, lecture à voix haute, jeux à choix ---------- */
.quiz .qrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.speak { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 700 15px var(--body); color: var(--navy); background: #fff; border: 2px solid var(--navy); border-radius: 999px; padding: 6px 12px; cursor: pointer; min-height: 40px; }
.speak:hover { background: var(--mint); }
.speak[hidden] { display: none; }
.quiz .why { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.quiz .why[hidden] { display: none; }
.pick { max-width: 860px; margin-inline: auto; }
.quiz .answers.tiles { grid-template-columns: repeat(3, 1fr); }
.quiz .answers.tiles button { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 12px 8px; font-size: 17px; line-height: 1.2; }
.quiz .answers.tiles img { width: min(100%, 120px); height: auto; aspect-ratio: 1; object-fit: contain; }
.quiz .answers.digits { grid-template-columns: repeat(3, 1fr); }
.quiz .answers.digits button { text-align: center; font-family: var(--display); font-size: clamp(34px, 7vw, 52px); color: var(--red); padding: 10px; }
.quiz .answers.digits button.good { color: var(--navy); }
@media (max-width: 480px) { .quiz .answers.tiles button { font-size: 15px; padding: 10px 4px; } .quiz .qrow, .quiz .why { flex-direction: column; } }
.quizlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.qz { display: grid; gap: 6px; justify-items: start; padding: 16px 20px; text-decoration: none; color: var(--navy); }
.qz:hover { background: #FFFDF6; color: var(--navy); }
.qz b { font-family: var(--display); font-size: 20px; font-weight: 600; }
.qz .stars { font-size: 15px; font-weight: 700; color: var(--orange-d); }
.fiche .pv.wide { aspect-ratio: 16 / 9; padding: 0; }
.fiche .pv.wide img { width: 100%; height: 100%; max-height: none; object-fit: cover; }

/* « Joue et apprends » : les 4 cartes sur une ligne quand il y a la place */
.quad { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.how { padding: 20px 22px; display: grid; gap: 8px; align-content: start; }
.how .nb { width: 44px; height: 44px; border-radius: 50%; background: var(--sun); border: var(--line); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 22px; }
.how h3 { font-size: 22px; }
.how p { color: var(--muted); font-size: 17px; }
