/* Pages de référencement (générées par scripts/seo.ts) : même direction artistique que le jeu, en HTML pur. */
@font-face { font-family: Gabarito; font-weight: 600; font-display: swap; src: url(/seo/fonts/gabarito-600.woff2) format("woff2"); }
@font-face { font-family: Gabarito; font-weight: 800; font-display: swap; src: url(/seo/fonts/gabarito-800.woff2) format("woff2"); }
@font-face { font-family: Bowlby; font-display: swap; src: url(/seo/fonts/bowlby.woff2) format("woff2"); }
:root { --bg: #f3eee4; --card: #fff; --ink: #1c1a37; --soft: #6b6884; --line: #e6dfd0; --pink: #ff4fae; --blue: #1572c4; --yellow: #ffd93d; --yellow-d: #d9a90b; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 600 17px/1.55 Gabarito, system-ui, sans-serif; }
a { color: var(--ink); text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
.top { max-width: 1100px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.logo { font-family: Bowlby, Gabarito, sans-serif; font-size: 30px; color: var(--blue); text-shadow: 3px 3px 0 var(--pink); text-decoration: none; letter-spacing: -.5px; }
.top nav { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 800; font-size: 15px; margin-right: auto; }
.top nav a { text-decoration: none; }
.play, .btn { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 800; text-decoration: none; padding: 10px 20px; border-radius: 999px; box-shadow: 0 4px 0 var(--yellow-d); white-space: nowrap; }
.play:hover, .btn:hover { color: var(--ink); transform: translateY(-1px); }
.crumbs { max-width: 1100px; margin: 0 auto; padding: 0 20px; font-size: 14px; color: var(--soft); }
.crumbs a { color: var(--soft); }
main { max-width: 1100px; margin: 0 auto; padding: 8px 20px 40px; }
h1 { font-weight: 800; font-size: clamp(32px, 5vw, 48px); line-height: 1.08; margin: 14px 0 10px; letter-spacing: -.01em; }
h2 { font-weight: 800; font-size: 22px; margin: 32px 0 10px; }
.lead { font-size: 20px; max-width: 70ch; margin: 0 0 22px; }
section { max-width: 100%; }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
figure { margin: 0; background: var(--card); border-radius: 24px; padding: 14px; }
figure.wide { padding: 10px; }
figcaption { font-size: 14px; color: var(--soft); padding: 6px 6px 2px; }
.map { display: block; width: 100%; height: auto; max-height: 520px; }
.map.big { max-height: none; }
.map .shadow path { fill: var(--pink); }
.map .deps path { stroke: #9a907c; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.map .deps a:hover path { fill: #ffe68a; }
.map .outline path { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; pointer-events: none; }
.map .labels text { font-family: Gabarito, sans-serif; font-weight: 800; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; pointer-events: none; paint-order: stroke; stroke: #fffdf8; stroke-width: 3px; stroke-linejoin: round; }
.map .frames rect { fill: #fffdf8; stroke: #d6cdb9; stroke-width: 1.5; }
.fiche { background: var(--card); border-radius: 24px; padding: 6px 22px 18px; }
.fiche h2 { margin-top: 14px; }
dl { margin: 0; }
.fiche dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; }
.fiche dt { color: var(--soft); }
.fiche dd { margin: 0; font-weight: 800; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 18px; overflow: hidden; font-size: 16px; }
th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); padding: 10px 12px; border-bottom: 2px solid var(--line); }
td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 800; font-variant-numeric: tabular-nums; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: 24px; padding: 18px 22px; margin: 26px 0; }
.cta b { font-size: 20px; font-weight: 800; }
.cta p { margin: 2px 0 0; color: #d9d6ea; }
.cta .link { color: #fff; font-size: 15px; }
.cards dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cards dl > div { background: var(--card); border-radius: 18px; padding: 12px 16px; box-shadow: 0 3px 0 var(--line); }
.cards dt { color: var(--soft); font-size: 15px; }
.cards dd { margin: 4px 0 0; font-weight: 800; font-size: 18px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; background: var(--card); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-weight: 800; font-size: 15px; box-shadow: 0 3px 0 var(--line); }
.chips small { color: var(--soft); margin-left: 4px; }
.chips li.on a { background: var(--yellow); box-shadow: 0 3px 0 var(--yellow-d); }
.faq details { background: var(--card); border-radius: 18px; padding: 12px 18px; margin: 0 0 8px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { margin: 8px 0 2px; }
.steps { padding-left: 22px; }
.steps li { margin: 6px 0; }
.levels { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.levels li { background: var(--card); border-radius: 18px; padding: 14px 16px; }
.levels b { display: block; font-size: 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; background: var(--card); border-radius: 22px; padding: 18px; text-decoration: none; box-shadow: 0 4px 0 var(--line); }
.tile b { font-size: 19px; }
.tile span { color: var(--soft); font-size: 15px; }
footer { max-width: 1100px; margin: 0 auto; padding: 26px 20px 40px; border-top: 2px solid var(--line); font-size: 15px; color: var(--soft); }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
footer .cols div { display: flex; flex-direction: column; gap: 4px; }
footer b { color: var(--ink); }
footer a { color: var(--soft); }
@media (max-width: 760px) {
  body { font-size: 16px; }
  .split { grid-template-columns: 1fr; }
  .top nav { order: 3; width: 100%; }
  table.big th:nth-child(4), table.big td:nth-child(4) { display: none; }
}
