/* Accueil de jeux.npolony.fr, à la charte 2027 : page crème, cadre rouge, titres Montserrat 800 turquoise, texte Roboto. */
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url("fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url("fonts/roboto-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --creme: #fffaf0; --blanc: #fff; --rouge: #ea504b; --rouge-fonce: #b9302c; --turquoise: #008ea8; --turquoise-fonce: #006b80;
  --encre: #14202b; --gris: #4b5a66; --trait: #e6dccb;
  --titre: "Montserrat", "Avenir Next", system-ui, sans-serif;
  --texte: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--rouge); color: var(--encre); font: 400 1rem/1.5 var(--texte); }
.cadre {
  min-height: 100vh; min-height: 100dvh; margin: 0; padding: 1.5rem max(1rem, env(safe-area-inset-right, 0px)) 2rem max(1rem, env(safe-area-inset-left, 0px));
  background: var(--creme); border: 8px solid var(--rouge); display: flex; flex-direction: column; gap: 2rem;
}
header, main, footer { width: 100%; max-width: 62rem; margin: 0 auto; }
.logo { display: inline-block; }
.logo img { display: block; width: 11rem; height: auto; }
h1 { margin: 0; font: 800 clamp(2rem, 6vw, 3.25rem)/1.05 var(--titre); color: var(--turquoise); text-wrap: balance; }
.chapo { margin: .6rem 0 0; max-width: 40rem; font-size: 1.125rem; color: var(--gris); }
.jeux { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.jeu { display: grid; gap: .35rem; height: 100%; padding: .75rem .75rem 1rem; background: var(--blanc); border: 2px solid var(--encre); border-radius: 6px; color: inherit; text-decoration: none; box-shadow: 6px 6px 0 var(--turquoise); transition: transform .12s, box-shadow .12s; }
.jeu img { display: block; width: 100%; height: auto; border: 2px solid var(--encre); border-radius: 3px; image-rendering: pixelated; margin-bottom: .5rem; }
.titre { font: 800 1.5rem/1.15 var(--titre); color: var(--turquoise-fonce); }
.resume { color: var(--gris); }
.bouton { justify-self: start; margin-top: .6rem; padding: .6rem 1.4rem; background: var(--rouge-fonce); color: var(--blanc); font: 700 1rem/1 var(--titre); border-radius: 4px; }
.jeu:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--rouge); }
.jeu:hover .bouton { background: var(--encre); }
a:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; }
footer { margin-top: auto; padding-top: 1.25rem; border-top: 2px solid var(--trait); color: var(--gris); font-size: .9375rem; }
footer p { margin: 0 0 .5rem; max-width: 44rem; }
.signature { color: var(--encre); }
.signature strong { display: block; font: 800 1.0625rem/1.3 var(--titre); color: var(--rouge-fonce); }
footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: .75rem; }
footer a { color: var(--turquoise-fonce); font-weight: 700; padding: .35rem 0; }
@media (prefers-reduced-motion: reduce) { .jeu { transition: none; } .jeu:hover { transform: none; } }
