/* wiwis.dev : un site simple et rapide. Polices du système, aucune ressource externe, thème clair et sombre. */
:root {
  --bg: #f6f7f9; --paper: #ffffff; --ink: #1b1d23; --muted: #555b66; --line: #dde1e7; --accent: #2f55b5; --accent-ink: #ffffff; --accent-2: #3f7a32; --chip: #eef1f6; --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.05);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11131a; --paper: #191c25; --ink: #e9ebf0; --muted: #a3a9b6; --line: #2b303c; --accent: #7f9cf0; --accent-ink: #0f1320; --accent-2: #8acb6e; --chip: #232837; --shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: 1.45rem; margin-top: 1.8em; }
h3 { font-size: 1.15rem; margin-top: 1.4em; }
p, ul, ol, dl { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* En-tête et pied de page */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand svg { width: 28px; height: 28px; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; border-radius: 6px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--chip); }
.site-foot { margin-top: 64px; padding: 28px 0 36px; border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 0.95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.site-foot a { color: var(--muted); }
main { padding-top: 28px; }

/* Grille des jeux */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 22px; margin: 8px 0 0; padding: 0; list-style: none; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: #222; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h2 { margin: 0; font-size: 1.3rem; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { background: var(--chip); color: var(--ink); font-size: 0.82rem; padding: 2px 9px; border-radius: 999px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
.btn:hover { background: var(--chip); }
.btn.play { background: var(--accent-2); border-color: transparent; color: #fff; }
.btn.play:hover { filter: brightness(1.08); }
@media (prefers-color-scheme: dark) { .btn.play { color: #0f1a0b; } }

/* Nouveautés */
.news { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news time { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .news li { grid-template-columns: 1fr; gap: 2px; } }

/* Fiche d'un jeu */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 0.92rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }
.hero { display: grid; grid-template-columns: 1.45fr 1fr; gap: 26px; align-items: start; margin-bottom: 36px; }
.hero img { border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.facts { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin: 0; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.facts div:last-of-type { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts .btn { width: 100%; margin-top: 12px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.shots figure { margin: 0; }
.shots img { border-radius: 8px; border: 1px solid var(--line); aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.shots figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 4px; }
.faq dt { font-weight: 650; margin-top: 14px; }
.faq dd { margin: 4px 0 0; color: var(--ink); }
.more { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; list-style: none; padding: 0; }
.more a { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; text-decoration: none; color: var(--ink); font-weight: 600; }
.more a span { display: block; font-weight: 400; color: var(--muted); font-size: 0.92rem; }
.more a:hover { border-color: var(--accent); }
.prose h2:first-child { margin-top: 0; }
.note { color: var(--muted); font-size: 0.95rem; }

/* Blog */
.posts { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 18px; }
.posts li { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px; box-shadow: var(--shadow); }
.posts img { border-radius: 6px; aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: #222; }
.posts h2 { margin: 0 0 4px; font-size: 1.25rem; }
.posts h2 a { color: var(--ink); text-decoration: none; }
.posts h2 a:hover { text-decoration: underline; }
.posts p { margin: 0 0 6px; color: var(--muted); }
@media (max-width: 640px) { .posts li { grid-template-columns: 1fr; gap: 10px; } }
.meta { color: var(--muted); font-size: 0.95rem; }
.meta a { color: var(--muted); }
.lead { margin: 0 0 24px; }
.lead img { border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.prose li { margin-bottom: 0.35em; }

/* Formulaire de contact */
.contact { display: grid; gap: 6px; margin-top: 8px; }
.contact label { font-weight: 600; margin-top: 10px; }
.contact .opt { font-weight: 400; color: var(--muted); }
.contact input, .contact textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; }
.contact textarea { resize: vertical; min-height: 160px; }
.contact input:focus-visible, .contact textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact .btn { justify-self: start; margin-top: 14px; font: inherit; font-weight: 600; cursor: pointer; }
.contact .btn:disabled { opacity: 0.6; cursor: default; }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 4px 0 0; min-height: 1.6em; color: var(--muted); }
