/* Wuvy · pages « idées de jeux » (listes de questions). Même direction que l'accueil : blanc, encre, et la couleur vient des Wuvs. */
@font-face { font-family: "Sequel Sans"; src: url("/fonts/sequel-sans-black-head.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #ffffff;
  --fog: #f4f3f1;
  --line: #e4e2de;
  --ink: #111111;
  --muted: #5f5b57;
  --tomate: #ff5b4f;
  --tomate-deep: #d9352b;
  --moutarde: #ffc23d;
  --vert: #2f9e5b;
  --display: "Sequel Sans", "Archivo", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; margin: 0; letter-spacing: -0.03em; word-spacing: .06em; line-height: 1; text-wrap: balance; }
h3 { letter-spacing: -0.015em; word-spacing: .12em; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hot { color: var(--tomate); }

/* En-tête */
.top { padding: 16px 0 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-block; border-radius: 10px; }
.logo img { width: 104px; }
.top-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.top-link:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.top-link svg { width: 18px; height: 18px; flex: none; }

/* Hero */
.hero { padding: 36px 0 40px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 700; font-size: 15px; color: var(--muted); }
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tomate); }
.hero h1 { font-size: clamp(38px, 10.6vw, 72px); line-height: .98; }
.lead { margin-top: 18px; font-size: 19px; line-height: 1.5; max-width: 40ch; }
.lead strong { font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.hero-art { position: relative; justify-self: center; width: min(78%, 340px); }
.hero-art img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 18px 18px rgba(17, 17, 17, .14)); animation: pop .8s var(--spring) .1s both; }
.hero-art::before {
  content: ""; position: absolute; inset: 8% 4% 4%; border-radius: 48% 52% 46% 54% / 52% 46% 54% 48%;
  background: var(--moutarde); transform: rotate(-6deg);
}
.hero-art--tomate::before { background: var(--tomate); }
.hero-art--fog::before { background: var(--fog); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.94) rotate(-4deg); } to { opacity: 1; transform: none; } }
.rise { animation: rise .7s var(--ease) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; font: 900 17px/1.1 var(--display); letter-spacing: -0.01em; word-spacing: .1em;
  text-decoration: none; text-align: center; box-shadow: 0 5px 0 var(--tomate);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--tomate), 0 16px 30px rgba(17, 17, 17, .18); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--tomate); transition-duration: .08s; }
.text-link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--line); transition: text-decoration-color .3s var(--ease); }
.text-link:hover { text-decoration-color: var(--tomate); }
.small { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* En bref (règle du jeu) */
.brief { padding: 8px 0 24px; }
.brief-card { padding: 26px 22px; border-radius: 32px; background: var(--fog); }
.brief-card h2 { font-size: clamp(26px, 6.6vw, 36px); }
.brief-card > p { margin-top: 12px; max-width: 64ch; color: #34312e; }
.rules { list-style: none; display: grid; gap: 12px; margin-top: 20px; counter-reset: rule; }
.rules li { position: relative; padding: 16px 18px 16px 62px; border-radius: 20px; background: var(--paper); counter-increment: rule; font-size: 16px; line-height: 1.5; color: #34312e; }
.rules li::before {
  content: counter(rule); position: absolute; left: 16px; top: 14px; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font: 900 15px/1 var(--display);
}
.rules li:nth-child(2)::before { background: var(--tomate); color: var(--ink); }
.rules li:nth-child(3)::before { background: var(--moutarde); color: var(--ink); }
.rules strong { color: var(--ink); }

/* Sommaire */
.toc { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.toc a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px;
  font-size: 14px; font-weight: 700; text-decoration: none; background: var(--paper);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.toc a:hover { background: var(--moutarde); transform: translateY(-1px); }

/* Listes de questions */
.qs { padding: 40px 0 8px; counter-reset: q; }
.q-group { padding: 24px 0 16px; scroll-margin-top: 16px; }
.q-group h2 { font-size: clamp(30px, 8vw, 50px); max-width: 18ch; }
.q-group > p { margin-top: 12px; max-width: 62ch; color: #34312e; }
.q-list { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.q {
  position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 2px solid var(--ink); border-radius: 20px;
  background: var(--paper); counter-increment: q; font: 700 18px/1.35 var(--body); letter-spacing: -0.005em;
  transition: transform .3s var(--spring), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.q::before {
  content: counter(q); flex: none; min-width: 34px; height: 34px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px;
  background: var(--fog); font: 900 14px/1 var(--display); letter-spacing: 0; margin-top: -3px;
}
.q:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 6px 0 var(--ink); }
.q-list .q:nth-child(7n+3) { background: var(--moutarde); }
.q-list .q:nth-child(7n+3)::before { background: var(--paper); }
.q-list .q:nth-child(11n+6) { background: var(--tomate); }
.q-list .q:nth-child(11n+6)::before { background: var(--paper); }
.q-or { display: flex; flex-direction: column; gap: 6px; }
.q-or .ou {
  align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--ink); color: #fff;
  font: 900 12px/1.5 var(--display); letter-spacing: .02em; word-spacing: 0;
}
.q-tag { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.q-list .q:nth-child(7n+3) .q-tag, .q-list .q:nth-child(11n+6) .q-tag { color: rgba(17, 17, 17, .78); }

/* Corps de texte */
.prose { padding: 40px 0; }
.prose h2 { font-size: clamp(30px, 8vw, 46px); max-width: 20ch; }
.prose h3 { font-size: 22px; margin-top: 28px; }
.prose p { margin-top: 14px; max-width: 66ch; color: #34312e; }
.prose ul { list-style: none; margin-top: 16px; display: grid; gap: 10px; max-width: 66ch; }
.prose ul li { position: relative; padding-left: 24px; color: #34312e; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--tomate); }
.prose strong { color: var(--ink); }

/* Jeux jouables (cartes) */
.games { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.game { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 24px; background: var(--fog); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.game:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -16px rgba(17, 17, 17, .28); }
.game img { width: 76px; height: 76px; object-fit: contain; }
.game h3 { font-size: 19px; margin: 0; }
.game p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: #34312e; }

/* Bandeau d'appel */
.cta { padding: 32px 0; }
.cta-card { position: relative; display: grid; gap: 8px; padding: 36px 22px 0; border-radius: 40px; background: var(--moutarde); overflow: hidden; }
.cta-card h2 { font-size: clamp(36px, 10vw, 68px); max-width: 13ch; }
.cta-card p { margin-top: 12px; font-size: 18px; max-width: 42ch; }
.cta-card .btn { margin-top: 22px; box-shadow: 0 5px 0 var(--paper); }
.cta-card .btn:hover { box-shadow: 0 7px 0 var(--paper), 0 16px 30px rgba(17, 17, 17, .2); }
.cta-card .small { color: rgba(17, 17, 17, .78); }
.cta-card img { width: 72%; max-width: 320px; margin: 18px auto -6px; transition: transform .4s var(--spring); }
.cta-card:hover img { transform: translateY(-6px) rotate(2deg); }

/* FAQ */
.faq-section { padding: 48px 0 32px; }
.faq-section h2 { font-size: clamp(32px, 8.6vw, 54px); max-width: 14ch; }
.faq { margin-top: 26px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 2px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0;
  cursor: pointer; list-style: none; font: 700 18px/1.3 var(--body); transition: color .3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--tomate-deep); }
.faq summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--moutarde); }
.faq-a { padding: 0 0 20px; font-size: 17px; line-height: 1.6; color: #34312e; max-width: 66ch; }
.faq-a p + p { margin-top: 10px; }

/* À lire aussi */
.related { padding: 32px 0 56px; }
.related h2 { font-size: clamp(28px, 7vw, 40px); }
.related ul { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.related a {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 18px 14px 14px; border: 2px solid var(--ink); border-radius: 24px;
  text-decoration: none; background: var(--paper); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.related a:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--ink); }
.related img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.related strong { display: block; font: 900 18px/1.1 var(--display); letter-spacing: -0.01em; word-spacing: .12em; }
.related span { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* Pied de page */
.foot { border-top: 2px solid var(--line); padding: 36px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 15px; }
.foot .wrap { display: grid; gap: 22px; }
.foot-logo img { width: 92px; }
.foot-title { font: 900 16px/1.2 var(--display); letter-spacing: -0.01em; word-spacing: .12em; margin-bottom: 6px; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--line); transition: text-decoration-color .3s var(--ease); }
.foot-links a:hover { text-decoration-color: var(--tomate); }
.foot-meta { color: var(--muted); }

@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .q-list { grid-template-columns: repeat(2, 1fr); }
  .games { grid-template-columns: repeat(2, 1fr); }
  .related ul { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 880px) {
  :root { --gutter: 40px; }
  .top { padding-top: 24px; }
  .logo img { width: 124px; }
  .hero { padding: 24px 0 64px; }
  .hero-grid { grid-template-columns: 1.35fr .65fr; gap: 48px; }
  .hero-art { width: 100%; max-width: 340px; }
  .lead { font-size: 21px; }
  .brief-card { padding: 40px 44px; border-radius: 40px; }
  .rules { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .qs { padding-top: 56px; }
  .q-group { padding: 40px 0 24px; }
  .q-list { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .q-list--wide { grid-template-columns: repeat(2, 1fr); }
  .prose { padding: 64px 0; }
  .games { grid-template-columns: repeat(3, 1fr); }
  .cta { padding: 56px 0; }
  .cta-card { grid-template-columns: 1.3fr .7fr; align-items: end; gap: 32px; padding: 56px 56px 0; }
  .cta-card > div { padding-bottom: 56px; }
  .cta-card img { width: 100%; margin: 0 0 -6px; }
  .faq-section { padding: 72px 0 40px; }
  .faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
  .faq { margin-top: 0; }
  .related ul { grid-template-columns: repeat(3, 1fr); }
  .foot .wrap { grid-template-columns: auto 1fr; align-items: start; gap: 16px 56px; }
  .foot-meta { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.prose h2:not(:first-child) { margin-top: 48px; }
.prose h2 + p { margin-top: 16px; }
@media (max-width: 559px) {
  .hero-art { width: min(62%, 240px); }
  .q { padding: 14px 16px; font-size: 17px; }
}
.games-section { padding: 48px 0 8px; }
.games-section h2 { font-size: clamp(30px, 8vw, 46px); max-width: 20ch; }
.games-section .games-box > p { margin-top: 12px; max-width: 62ch; color: #34312e; }
.brief-card .game { background: var(--paper); }
.hero-art--tall { width: min(46%, 200px); }
@media (min-width: 880px) { .hero-art--tall { max-width: 260px; } }
