/*
Theme Name: NintendoTests
Theme URI: https://nintendotests.com
Author: GhostZero
Description: Thème sur mesure de NintendoTests : tests, portages et news Switch / Switch 2, système de coupes.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: nintendotests
License: Propriétaire
*/

/* NintendoTests — maquette page d'article
   Couleurs tirées du logo : rouge #E4000F + noir. */

:root {
  --red: #e4000f;
  --red-dark: #b8000c;
  --red-soft: #fff0f0;
  --ink: #15151a;
  --ink-2: #3b3b44;
  --muted: #6c6c76;
  --line: #e6e4df;
  --paper: #faf9f6;
  --card: #ffffff;

  --t-caca: #c0392b;
  --t-bronze: #a35b26;
  --t-argent: #6f737c;
  --t-or: #9a6c00;
  --t-diamant: #5a4fd8;

  --pros: #128a4a;
  --cons: #d0331f;

  --radius: 16px;
  --font-ui: "Outfit", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 8px 24px rgba(20, 20, 30, .06);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
:target, #contenu { scroll-margin-top: 90px; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--font-text);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap--wide { max-width: 1200px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 4px 14px rgba(20, 20, 30, .06);
}
.site-header__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  font: 600 16px/1 var(--font-ui); text-decoration: none; color: var(--ink-2);
  padding: 10px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--red-soft); color: var(--red-dark); }
.nav a.is-active { color: #fff; background: var(--red); }
.search-btn {
  border: 0; background: #f1f0ec; color: var(--ink); width: 40px; height: 40px;
  border-radius: 999px; display: grid; place-items: center; cursor: pointer;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; font: 700 12px/1 var(--font-ui);
  letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px;
}
.badge--test { background: var(--red); color: #fff; }
.badge--portage { background: var(--ink); color: #fff; }
.badge--platform { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

.tier {
  display: inline-block; font: 700 13px/1 var(--font-ui); color: #fff;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.tier--caca { background: var(--t-caca); }
.tier--bronze { background: var(--t-bronze); }
.tier--argent { background: var(--t-argent); }
.tier--or { background: var(--t-or); }
.tier--diamant { background: linear-gradient(90deg, #3c6df0, var(--t-diamant)); }

/* ---------- En-tête d'article (bandeau rouge) ---------- */
.masthead {
  background-color: var(--red);
  background-image: radial-gradient(rgba(0, 0, 0, .09) 1.2px, transparent 1.3px);
  background-size: 14px 14px;
  color: #fff;
  padding-bottom: 150px;
}
.masthead .crumbs { color: rgba(255, 255, 255, .8); }
.masthead .crumbs a:hover { color: #fff; text-decoration: underline; }
.masthead .badge--test { background: #fff; color: var(--red); }
.masthead .badge--portage { background: var(--ink); color: #fff; }
.masthead .badge--platform { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.masthead .avatar { background: #fff; color: var(--red); }
.masthead .byline__meta { color: rgba(255, 255, 255, .8); }
.hero-wrap { margin-top: -120px; }

.crumbs {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 0;
  font: 500 14px/1.4 var(--font-ui); color: var(--muted);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }

.article-head { padding: 22px 0 28px; }
.article-head__badges { display: flex; gap: 8px; margin-bottom: 16px; }
.article-head__title {
  font: 800 clamp(28px, 3.8vw, 44px)/1.1 var(--font-ui);
  letter-spacing: -.02em; margin: 0;
}

.byline { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font: 700 14px/1 var(--font-ui); flex: none;
}
.avatar--lg { width: 64px; height: 64px; font-size: 20px; }
.byline__name { font: 500 15px/1.3 var(--font-ui); }
.byline__meta { font-size: 14px; color: var(--muted); }
.byline--box { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.byline--box .avatar { background: var(--red); }

.hero { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 8; background: #ddd; box-shadow: 0 18px 40px rgba(80, 0, 5, .25); }
.hero img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Mise en page 2 colonnes ---------- */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px;
  padding-top: 36px; padding-bottom: 64px;
}
.layout__main { max-width: 760px; min-width: 0; }
.layout__side { position: relative; }

.toc { position: sticky; top: 96px; }
.toc__title {
  font: 700 13px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a {
  display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent;
  font: 500 14.5px/1.35 var(--font-ui); color: var(--ink-2); text-decoration: none;
}
.toc li a:hover { color: var(--red); border-left-color: var(--red); }
.toc ol { border-left-color: #f3c6c9; }

/* ---------- Verdict express ---------- */
.verdict {
  display: grid; grid-template-columns: 210px 1fr; gap: 28px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 0; margin-bottom: 44px; overflow: hidden;
}
.verdict--caca { --tier-color: var(--t-caca); }
.verdict--bronze { --tier-color: var(--t-bronze); }
.verdict--argent { --tier-color: var(--t-argent); }
.verdict--or { --tier-color: var(--t-or); }
.verdict--diamant { --tier-color: var(--t-diamant); }

.verdict__score {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px;
  padding: 32px 16px; color: #fff;
  background-color: var(--red);
  background-image: radial-gradient(rgba(0, 0, 0, .09) 1.2px, transparent 1.3px);
  background-size: 14px 14px;
}
.verdict__score .tier { box-shadow: 0 0 0 2px #fff; }
.verdict__text { padding: 28px 28px 24px 0; }
.cup--lg { width: 128px; height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .18)); }
.cup--md { width: 64px; height: auto; }
.cup--sm { width: 40px; height: auto; }
.verdict__num { font-family: var(--font-ui); line-height: 1; }
.verdict__num b { font-size: 56px; font-weight: 800; letter-spacing: -.03em; }
.verdict__num span { font-size: 22px; font-weight: 600; color: rgba(255, 255, 255, .8); }

.verdict__kicker {
  margin: 0 0 6px; font: 700 13px/1 var(--font-ui); letter-spacing: .08em;
  text-transform: uppercase; color: var(--red);
}
.verdict__line { margin: 0 0 18px; font: 600 20px/1.4 var(--font-ui); text-wrap: pretty; }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.proscons h3 { margin: 0 0 8px; font: 700 15px/1 var(--font-ui); }
.proscons ul { list-style: none; margin: 0; padding: 0; }
.proscons li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; margin-bottom: 8px; }
.proscons li::before {
  position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font: 800 13px/1 var(--font-ui); color: #fff;
}
.proscons__col--pros h3 { color: var(--pros); }
.proscons__col--cons h3 { color: var(--cons); }
.proscons__col--pros li::before { content: "+"; background: var(--pros); }
.proscons__col--cons li::before { content: "−"; background: var(--cons); }

.todo {
  display: inline-block; font: 600 12px/1 var(--font-ui); color: #8a6d00;
  background: #fff4c2; border: 1px dashed #d9b400; border-radius: 4px; padding: 4px 6px;
}

.origin { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.origin a { color: var(--red); }

/* ---------- Corps de texte ---------- */
.prose { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.prose > p:first-child { font-size: 20px; line-height: 1.65; color: var(--ink); }
.prose h2 {
  font: 700 28px/1.2 var(--font-ui); letter-spacing: -.01em; color: var(--ink);
  margin: 48px 0 14px; scroll-margin-top: 90px;
}
.prose h2::before {
  content: ""; display: block; width: 36px; height: 5px; border-radius: 3px;
  background: var(--red); margin-bottom: 14px;
}
.prose h3 { font: 700 21px/1.3 var(--font-ui); color: var(--ink); margin: 32px 0 10px; }
.prose p { margin: 0 0 20px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--red); text-underline-offset: 3px; }
.prose ul { padding-left: 22px; }

.shot { margin: 36px 0 8px; border-radius: 14px; overflow: hidden; background: #ddd; }
.shot img { width: 100%; height: auto; }

.final {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0 0; padding: 22px 8px 0 28px;
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: relative; color: #fff;
  background-color: var(--red);
  background-image: radial-gradient(rgba(0, 0, 0, .09) 1.2px, transparent 1.3px);
  background-size: 14px 14px;
}
.final__body { padding-bottom: 22px; }
.final__label { font: 700 13px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .85); margin-bottom: 10px; }
.final__score { font: 600 18px/1 var(--font-ui); display: flex; align-items: center; gap: 12px; }
.final__score span.num { color: rgba(255, 255, 255, .8); }
.final__score b { font-size: 40px; font-weight: 800; }
.final__score .tier { box-shadow: 0 0 0 2px #fff; }
.final__cup { margin: 14px 0 0; font: 600 15px/1.4 var(--font-ui); color: #fff; max-width: 32ch; }
.final__flash { display: block; width: 210px; height: auto; flex: none; align-self: flex-end; margin-bottom: -6px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .2)); }
@media (max-width: 560px) {
  .final { flex-direction: column-reverse; align-items: stretch; padding: 16px 20px 0; text-align: center; }
  .final__flash { width: 170px; align-self: center; margin: 0 auto -4px; }
  .final__score { justify-content: center; }
  .final__cup { margin-left: auto; margin-right: auto; }
  .final__body { padding-bottom: 20px; }
}
aside.author {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--line);
}
.author__name { font: 700 18px/1.3 var(--font-ui); }
.author__bio { margin: 4px 0 0; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ---------- Cartes / À lire aussi ---------- */
.related {
  background-color: var(--red);
  background-image: radial-gradient(rgba(0, 0, 0, .09) 1.2px, transparent 1.3px);
  background-size: 14px 14px;
  padding: 48px 0 64px;
}
.related__title { font: 800 28px/1.2 var(--font-ui); margin: 0 0 22px; display: flex; align-items: center; gap: 12px; color: #fff; }
.related__title::before { content: ""; width: 10px; height: 28px; border-radius: 3px; background: #fff; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(20, 20, 30, .12); }
.card__media { aspect-ratio: 16 / 9; background: #ddd; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 16px 18px 20px; }
.card__meta { display: flex; gap: 6px; margin-bottom: 10px; }
.card__meta .badge { font-size: 11px; padding: 5px 8px; }
.card__title { margin: 0; font: 700 18px/1.3 var(--font-ui); text-wrap: pretty; }
.card__score {
  position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, .95); border-radius: 50%; padding: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.card__score .cup--sm { width: 44px; }
.card__score b { font-size: 18px; font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; color: var(--muted); padding: 40px 0; box-shadow: 0 -1px 0 var(--line); }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px 32px; }
.site-footer__brand { justify-self: start; display: inline-flex; }
.site-footer__logo { height: 28px; width: auto; }
.site-footer__copy { margin: 0; font-size: 14px; text-align: center; }
.site-footer nav { display: flex; gap: 18px; font: 500 14px/1 var(--font-ui); justify-self: end; }
@media (max-width: 640px) {
  .site-footer__inner { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .site-footer__brand, .site-footer nav { justify-self: center; }
  .site-footer__copy { order: 3; }
}
.site-footer nav a { text-decoration: none; color: var(--ink-2); }
.site-footer nav a:hover { color: var(--red); }

.index h1 { font: 800 32px/1.2 var(--font-ui); margin: 40px 0 24px; }
.index .grid { margin-bottom: 64px; }

/* ---------- Accueil ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card__date { display: block; margin-top: 10px; font: 500 13px/1 var(--font-ui); color: var(--muted); }

.home-hero {
  background-color: var(--red);
  background-image: radial-gradient(rgba(0, 0, 0, .09) 1.2px, transparent 1.3px);
  background-size: 14px 14px;
  padding: 36px 0 48px;
}
.home-hero__grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.home-hero__kicker {
  margin: 0 0 12px; font: 700 13px/1 var(--font-ui); letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255, 255, 255, .85);
}
.home-hero__side { display: flex; flex-direction: column; gap: 12px; }
.home-hero__side .mini { flex: 1; }

.feature {
  display: block; color: var(--ink); text-decoration: none; background: var(--card); border-radius: 20px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(80, 0, 5, .25); transition: transform .15s ease;
}
.feature:hover { transform: translateY(-3px); }
.feature__media { aspect-ratio: 16 / 8; background: #ddd; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: 22px 26px 24px; }
.feature__title { margin: 0 0 10px; font: 800 clamp(24px, 2.6vw, 32px)/1.15 var(--font-ui); letter-spacing: -.01em; }
.feature__line { margin: 0 0 18px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.feature__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.feature__foot time { font: 500 14px/1 var(--font-ui); color: var(--muted); }
.feature__score { display: inline-flex; align-items: center; gap: 10px; font: 600 16px/1 var(--font-ui); color: var(--muted); }
.feature__score b { font-size: 30px; font-weight: 800; color: var(--ink); }
.feature__score .cup--md { width: 52px; }

.mini {
  display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  text-decoration: none; color: var(--ink); background: var(--card); border-radius: 14px; padding: 10px;
  box-shadow: 0 6px 18px rgba(80, 0, 5, .18); transition: transform .15s ease;
}
.mini:hover { transform: translateX(3px); }
.mini__media { aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: #ddd; }
.mini__media img { width: 100%; height: 100%; object-fit: cover; }
.mini .card__meta { margin-bottom: 6px; }
.mini .badge { font-size: 10px; padding: 4px 6px; }
.mini__title { margin: 0; font: 700 16px/1.25 var(--font-ui); }
.mini__score { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-right: 6px; font: 800 17px/1 var(--font-ui); }

.news-box {
  display: flex; flex-direction: column; background: var(--card); color: var(--ink);
  border-radius: 20px; padding: 26px; box-shadow: 0 18px 40px rgba(80, 0, 5, .25);
  /* La hauteur est imposée par la carte « À la une » : l'encart ne l'agrandit jamais. */
  height: 0; min-height: 100%; overflow: hidden;
}
.news-box__link { min-height: 0; }
.news-box__excerpt { flex: 0 1 auto; min-height: 0; }
.news-box__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 22px; }
.news-box__label {
  font: 800 13px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase;
  background: var(--red); color: #fff; padding: 7px 10px; border-radius: 6px;
}
.news-box__link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.news-box__date { font: 500 14px/1 var(--font-ui); color: var(--muted); margin-bottom: 12px; }
.news-box__title { margin: 0 0 14px; font: 800 clamp(24px, 2.4vw, 30px)/1.15 var(--font-ui); letter-spacing: -.01em; }
.news-box__link:hover .news-box__title { color: var(--red); }
.news-box__excerpt {
  margin: 0 0 22px; color: var(--ink-2); font-size: 16px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-box__cta {
  margin-top: auto; align-self: flex-start; font: 700 15px/1 var(--font-ui);
  background: var(--red); color: #fff; padding: 12px 18px; border-radius: 999px;
}
.news-box__all {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font: 600 14px/1 var(--font-ui); color: var(--muted); text-decoration: none;
}
.news-box__all:hover { color: var(--red); }

.home-section { padding: 56px 0; }
.home-section--dark {
  background-color: var(--red);
  background-image: radial-gradient(rgba(0, 0, 0, .09) 1.2px, transparent 1.3px);
  background-size: 14px 14px;
  color: #fff;
}
.home-section--dark .section-sub { color: rgba(255, 255, 255, .85); }
.home-section--dark .section-title::before { background: #fff; }
.home-section--dark .section-more { background: #fff; color: var(--red); }
.home-section--dark .section-more:hover { background: var(--ink); color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-title { margin: 0; font: 800 30px/1.15 var(--font-ui); display: flex; align-items: center; gap: 12px; }
.section-title::before { content: ""; width: 10px; height: 30px; border-radius: 3px; background: var(--red); flex: none; }
.section-sub { margin: 8px 0 0 22px; color: var(--muted); font-size: 15px; }
.section-more {
  flex: none; text-decoration: none; font: 700 15px/1 var(--font-ui); color: #fff; background: var(--red);
  padding: 11px 16px; border-radius: 999px;
}
.section-more:hover { background: var(--red-dark); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--4 .card__title { font-size: 16px; }

.ranking { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; counter-reset: r; }
.rank a {
  display: grid; grid-template-columns: 40px 56px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  text-decoration: none; background: var(--card); border-radius: 14px; padding: 10px 18px 10px 12px; box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.rank a:hover { transform: translateX(3px); }
.rank__pos { font: 800 26px/1 var(--font-ui); color: var(--red); text-align: center; }
.rank .cup--md { width: 56px; }
.rank__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rank__title { font: 700 17px/1.25 var(--font-ui); }
.rank__meta { font: 500 13px/1 var(--font-ui); color: var(--muted); }
.rank__score { font: 600 15px/1 var(--font-ui); color: var(--muted); }
.rank__score b { font-size: 24px; font-weight: 800; color: var(--ink); }

/* ---------- Listes de catégorie, recherche, news, 404 ---------- */
[hidden] { display: none !important; }
a.search-btn { text-decoration: none; }

.masthead--list { padding-bottom: 40px; }
.list-title { margin: 18px 0 10px; font: 800 clamp(34px, 5vw, 52px)/1.05 var(--font-ui); letter-spacing: -.02em; }
.list-intro { margin: 0; max-width: 720px; font-size: 17px; line-height: 1.55; color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips button {
  font: 700 15px/1 var(--font-ui); color: #fff; background: rgba(0, 0, 0, .18);
  border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer;
}
.chips button span { opacity: .7; margin-left: 4px; font-weight: 600; }
.chips button:hover { background: rgba(0, 0, 0, .3); }
.chips button[aria-pressed="true"] { background: #fff; color: var(--red); }

.list-section { padding: 40px 0 64px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pager button {
  min-width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 16px/1 var(--font-ui); background: var(--card); color: var(--ink); box-shadow: var(--shadow);
}
.pager button:hover { color: var(--red); }
.pager button[aria-current="page"] { background: var(--red); color: #fff; }

.empty { text-align: center; padding: 48px 16px; max-width: 520px; margin: 0 auto; }
.empty img { margin: 0 auto 12px; width: 96px; height: auto; }
.empty h2 { margin: 0 0 8px; font: 800 26px/1.2 var(--font-ui); }
.empty p { margin: 0; color: var(--muted); }
.empty a { color: var(--red); }

.searchbar { display: flex; gap: 8px; margin: 22px 0 16px; max-width: 680px; }
.searchbar input {
  flex: 1; min-width: 0; font: 500 18px/1 var(--font-text); padding: 16px 20px;
  border: 0; border-radius: 999px; background: #fff; color: var(--ink);
}
.searchbar input:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
.searchbar button {
  font: 700 16px/1 var(--font-ui); border: 0; border-radius: 999px; padding: 0 22px; cursor: pointer;
  background: var(--ink); color: #fff;
}
.searchbar--light input { background: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .0); }

.masthead--news { padding-bottom: 36px; }
.badge--news { background: var(--ink); color: #fff; }
.byline--light .avatar { background: #fff; color: var(--red); }
.byline--light .byline__meta { color: rgba(255, 255, 255, .8); }
.masthead--news .article-head { padding-bottom: 0; }
.masthead--news .article-head__title { margin-bottom: 22px; }
.news-layout { max-width: 760px; padding-top: 40px; padding-bottom: 56px; }
.card--news { border-top: 5px solid var(--red); }
.card--news .card__body { display: flex; flex-direction: column; height: 100%; padding-top: 20px; }
.card__excerpt { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card--news .card__date { margin-top: auto; padding-top: 12px; }
.news-source { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 32px; }

.notfound {
  background-color: var(--red);
  background-image: radial-gradient(rgba(0, 0, 0, .09) 1.2px, transparent 1.3px);
  background-size: 14px 14px;
  color: #fff; padding: 64px 0;
}
.notfound__inner { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.notfound__cup { width: 220px; height: auto; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .3)); transform: rotate(-8deg); }
.notfound__code { margin: 0 0 8px; font: 800 14px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.notfound__title { margin: 0 0 14px; font: 800 clamp(30px, 4.4vw, 48px)/1.08 var(--font-ui); letter-spacing: -.02em; }
.notfound__text { margin: 0; max-width: 620px; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .92); }
.notfound__home { display: inline-block; margin-top: 4px; font: 700 15px/1 var(--font-ui); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .layout__side { display: none; }
  .grid, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .home-hero__grid { grid-template-columns: 1fr; }
  .news-box { height: auto; min-height: 0; }
  .ranking { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header__inner { gap: 12px; height: 60px; }
  .logo img { height: 26px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 7px; font-size: 14px; }
  .article-head__title { overflow-wrap: anywhere; }
  .search-btn { display: none; }
  .hero { border-radius: 14px; aspect-ratio: 16 / 9; }
  .verdict { grid-template-columns: 1fr; gap: 0; }
  .verdict__text { padding: 20px 18px 22px; }
  .masthead { padding-bottom: 90px; }
  .hero-wrap { margin-top: -70px; }
  .verdict__score { flex-direction: row; justify-content: center; gap: 18px; }
  .cup--lg { width: 88px; }
  .verdict__num b { font-size: 44px; }
  .verdict__line { font-size: 18px; text-align: center; }
  .proscons { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
  .prose > p:first-child { font-size: 18px; }
  .prose h2 { font-size: 24px; }
  .grid, .grid--4 { grid-template-columns: 1fr; }
  .notfound__inner { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .notfound__cup { width: 140px; margin: 0 auto; }
  .notfound .searchbar { margin-left: auto; margin-right: auto; }
  .searchbar { flex-direction: column; }
  .searchbar button { padding: 14px 22px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-title { font-size: 24px; }
  .feature__body { padding: 18px; }
  .mini { grid-template-columns: 88px minmax(0, 1fr) auto; }
  .rank a { grid-template-columns: 28px 44px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px 10px 8px; }
  .rank .cup--md { width: 44px; }
}

/* =========================================================================
   Ajouts propres au thème WordPress
   ========================================================================= */
.badge--news { background: var(--ink); color: #fff; }
.badge--guide { background: #fff; color: var(--ink); }
.masthead .badge--news { background: var(--ink); color: #fff; }
.home-hero__grid--solo { grid-template-columns: 1fr; }

/* Filtres en liens */
.chips a {
  font: 700 15px/1 var(--font-ui); color: #fff; background: rgba(0, 0, 0, .18);
  border-radius: 999px; padding: 10px 16px; text-decoration: none;
}
.chips a span { opacity: .7; margin-left: 4px; font-weight: 600; }
.chips a:hover { background: rgba(0, 0, 0, .3); }
.chips a[aria-pressed="true"] { background: #fff; color: var(--red); }
.list-intro p { margin: 0; }

/* Pagination WordPress */
.pager { flex-wrap: wrap; }
.pager .page-numbers {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; display: inline-grid; place-items: center;
  font: 700 16px/1 var(--font-ui); background: var(--card); color: var(--ink); box-shadow: var(--shadow); text-decoration: none;
}
.pager a.page-numbers:hover { color: var(--red); }
.pager .page-numbers.current { background: var(--red); color: #fff; }
.pager .page-numbers.dots { background: transparent; box-shadow: none; }

/* Contenu d'article : images, légendes, embeds */
.prose img { border-radius: 14px; height: auto; }
.prose figure, .prose .wp-caption { margin: 36px 0; max-width: 100%; }
.prose figcaption, .prose .wp-caption-text { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose iframe { max-width: 100%; border-radius: 14px; }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--red); font-style: italic; color: var(--ink); }

/* Partage */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 36px; }
.share__label { font: 700 13px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share__btn {
  font: 600 14px/1 var(--font-ui); padding: 9px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none;
}
.share__btn:hover { background: var(--red); color: #fff; box-shadow: none; }
.share__native { background: var(--red); color: #fff; box-shadow: none; }
.prose + .final { margin-top: 40px; }
.layout__main > .share:last-of-type, .news-layout > .share { margin-top: 28px; }

/* Commentaires */
.comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.comments__title, .comment-reply-title { font: 800 24px/1.2 var(--font-ui); margin: 0 0 20px; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; margin-bottom: 14px; }
.comment-author { display: flex; align-items: center; gap: 10px; font: 700 15px/1.2 var(--font-ui); }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 13px; margin: 4px 0 8px; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content p { margin: 0 0 10px; font-size: 16px; }
.reply a { font: 700 13px/1 var(--font-ui); color: var(--red); text-decoration: none; }
.comment-form label { display: block; font: 600 14px/1.2 var(--font-ui); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea {
  width: 100%; font: 400 16px/1.5 var(--font-text); padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink);
}
.comment-form textarea { min-height: 140px; }
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.comment-form-cookies-consent label { font-weight: 500; }
.comment-notes, .logged-in-as { font-size: 14px; color: var(--muted); }
.comment-form .btn, .comment-form input[type="submit"] {
  font: 700 16px/1 var(--font-ui); background: var(--red); color: #fff; border: 0; border-radius: 999px;
  padding: 14px 22px; cursor: pointer;
}
.comment-form .btn:hover { background: var(--red-dark); }

/* Lien d'évitement visible au clavier */
.sr-only:focus { position: static; width: auto; height: auto; clip: auto; padding: 8px; background: #fff; }

/* Avatar image (Flash) */
img.avatar-img { object-fit: cover; padding: 0; background: var(--red); box-shadow: 0 0 0 2px #fff; }
.byline--box img.avatar-img { box-shadow: 0 0 0 2px var(--red-soft); }

/* Page auteur */
.masthead--author { padding-bottom: 0; overflow: hidden; }
.author-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.author-head__text { flex: 1; min-width: 0; padding-bottom: 40px; }
.author-head__mascot { display: block; width: 300px; height: auto; flex: none; margin-top: 8px; filter: drop-shadow(0 12px 24px rgba(80, 0, 5, .3)); }
.author-head .list-intro p { margin: 0 0 8px; }
.author__name a { text-decoration: none; }
.author__name a:hover { color: var(--red); }
@media (max-width: 640px) {
  .author-head { flex-direction: column; align-items: stretch; gap: 4px; }
  .author-head__text { padding-bottom: 8px; }
  .author-head__mascot { width: 200px; align-self: center; }
}

/* Image dans l'encart News de l'accueil */
.news-box__media { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; margin-bottom: 16px; background: var(--red); flex: none; }
.news-box__media img { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; }
.news-box__head { margin-bottom: 14px; }
.news-box__title { font-size: clamp(20px, 1.9vw, 24px); margin-bottom: 10px; }
.news-box__excerpt { -webkit-line-clamp: 2; line-clamp: 2; margin-bottom: 16px; font-size: 15px; }

/* Top 3 (podium) */
.podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: end; }
.podium__item a { position: relative; display: block; text-decoration: none; color: var(--ink); background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease; }
.podium__item a:hover { transform: translateY(-4px); }
.podium__item--1 { order: 2; }
.podium__item--2 { order: 1; }
.podium__item--3 { order: 3; }
.podium__item--1 a { box-shadow: 0 0 0 4px var(--red), 0 18px 40px rgba(80, 0, 5, .2); }
.podium__media { aspect-ratio: 16 / 9; background: #ddd; }
.podium__item--1 .podium__media { aspect-ratio: 16 / 10; }
.podium__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.podium__rank {
  position: absolute; top: 12px; left: 12px; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font: 800 22px/1 var(--font-ui); background: var(--ink); color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.podium__item--1 .podium__rank { background: var(--red); width: 52px; height: 52px; font-size: 26px; }
.podium__body { display: flex; align-items: center; gap: 14px; padding: 16px 18px 18px; }
.podium__body > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.podium__title { font: 800 19px/1.2 var(--font-ui); }
.podium__meta { font: 500 13px/1 var(--font-ui); color: var(--muted); }
@media (max-width: 960px) {
  .podium { grid-template-columns: 1fr; align-items: stretch; }
  .podium__item--1, .podium__item--2, .podium__item--3 { order: 0; }
}

/* Bienvenue (Flash) */
.welcome {
  background-color: var(--red);
  background-image: radial-gradient(rgba(0, 0, 0, .09) 1.2px, transparent 1.3px);
  background-size: 14px 14px;
  color: #fff; padding: 56px 0 0; overflow: hidden;
}
.welcome__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.welcome__text { padding-bottom: 56px; }
.welcome__kicker { margin: 0 0 10px; font: 700 13px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.welcome__title { margin: 0 0 16px; font: 800 clamp(32px, 4.4vw, 52px)/1.05 var(--font-ui); letter-spacing: -.02em; }
.welcome__lead { margin: 0 0 24px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .95); max-width: 600px; }
.welcome__points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.welcome__points li { display: flex; flex-direction: column; gap: 2px; padding-left: 30px; position: relative; }
.welcome__points li::before {
  content: "★"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; background: #fff; color: var(--red);
}
.welcome__points b { font: 700 17px/1.3 var(--font-ui); }
.welcome__points span { font-size: 15px; color: rgba(255, 255, 255, .85); }
.welcome__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.welcome__btn { font: 700 16px/1 var(--font-ui); background: #fff; color: var(--red); padding: 14px 22px; border-radius: 999px; text-decoration: none; }
.welcome__btn:hover { background: var(--ink); color: #fff; }
.welcome__link { font: 700 15px/1 var(--font-ui); color: #fff; }
.welcome__media { align-self: end; }
.welcome__media img { display: block; width: 100%; max-width: 580px; height: auto; margin-left: auto; }
@media (max-width: 960px) {
  .welcome__inner { grid-template-columns: 1fr; }
  .welcome__text { padding-bottom: 0; }
  .welcome__media img { max-width: 360px; margin: 0 auto; }
}
/* Fond l'image de Flash dans le rouge de la section (bords gauche et haut) */
.welcome__media img {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%), linear-gradient(to bottom, transparent 0, #000 14%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(to right, transparent 0, #000 14%), linear-gradient(to bottom, transparent 0, #000 14%);
}

/* Licence */
.badge--licence { background: #fff; color: var(--ink); text-decoration: none; }
.masthead .badge--licence { background: rgba(0, 0, 0, .2); color: #fff; }
.masthead .badge--licence:hover { background: #fff; color: var(--red); }
.related--licence { background: var(--card); background-image: none; border-top: 1px solid var(--line); }
.related--licence .related__title { color: var(--ink); margin: 0; }
.related--licence .related__title::before { background: var(--red); }
.related--licence .section-head { margin-bottom: 22px; }

/* Compteur de vues (plugin Post Views Counter) : masqué dans les articles, le comptage continue en coulisses */
.post-views, .pvc-container { display: none !important; }

/* Navigation par licence */
.licences { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 18px; }
.licences__label { font: 700 12px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-right: 4px; }
.licences a {
  font: 600 14px/1 var(--font-ui); color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55);
}
.licences a:hover { background: rgba(255, 255, 255, .15); }
.licences a[aria-current="page"] { background: #fff; color: var(--red); box-shadow: none; }

/* =========================================================================
   Bannière cookies (CookieYes) aux couleurs du site
   « Tout accepter » et « Tout refuser » ont exactement le même poids visuel (exigence CNIL / APD)
   ========================================================================= */
.cky-consent-container .cky-consent-bar,
.cky-modal .cky-preference-center { border-radius: 18px !important; border: 0 !important; box-shadow: 0 18px 50px rgba(20, 20, 30, .25) !important; }
.cky-consent-container .cky-title,
.cky-modal .cky-preference-title { font-family: var(--font-ui) !important; font-weight: 800 !important; color: var(--ink) !important; }
.cky-consent-container .cky-notice-des, .cky-modal .cky-preference-content-wrapper { font-family: var(--font-text) !important; }
.cky-btn { font-family: var(--font-ui) !important; font-weight: 700 !important; border-radius: 999px !important; }
.cky-btn.cky-btn-accept,
.cky-btn.cky-btn-reject,
.cky-btn.cky-btn-preferences {
  background-color: var(--red) !important; border-color: var(--red) !important; color: #fff !important;
}
.cky-btn.cky-btn-accept:hover,
.cky-btn.cky-btn-reject:hover,
.cky-btn.cky-btn-preferences:hover { background-color: var(--red-dark) !important; border-color: var(--red-dark) !important; opacity: 1 !important; }
.cky-btn.cky-btn-customize { color: var(--red) !important; border-color: var(--red) !important; background-color: transparent !important; }
.cky-btn.cky-btn-customize:hover { background-color: var(--red-soft) !important; opacity: 1 !important; }
.cky-btn-revisit-wrapper { background-color: var(--red) !important; }
.cky-switch input[type="checkbox"]:checked { background: var(--red) !important; }
.cky-accordion-header .cky-always-active { color: var(--pros) !important; }
.cky-notice-des a, .cky-preference-content-wrapper a { color: var(--red) !important; }

/* Accueil : texte sous les titres de la une et de la news (2 lignes max) */
.feature__line {
  margin: 0 0 16px; color: var(--ink-2); font-size: 16px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feature__title { margin-bottom: 8px; }
.news-box__excerpt { display: -webkit-box !important; -webkit-line-clamp: 2; line-clamp: 2; }

/* Points forts/faibles des articles sans note */
.proscons--box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin: 32px 0 8px; }

/* Badges éditeur */
.badge--ed-nintendo { background: var(--red); color: #fff; }
.badge--ed-tiers { background: var(--ink); color: #fff; }
.masthead .badge--ed-nintendo { background: #fff; color: var(--red); }
.masthead .badge--ed-tiers { background: var(--ink); color: #fff; }

/* Menu à 3 entrées : reste sur une ligne sur mobile */
.nav a { white-space: nowrap; }
@media (max-width: 640px) {
  .site-header__inner { gap: 8px; }
  .logo img { height: 24px; }
  .nav a { padding: 7px 7px; font-size: 13px; }
}
@media (max-width: 400px) {
  .logo img { height: 20px; }
  .nav a { padding: 6px 5px; font-size: 12px; }
}

/* =========================================================================
   Recherche instantanée (⌘K)
   ========================================================================= */
.search-kbd {
  font: 600 12px/1 var(--font-ui); color: var(--muted); background: #f1f0ec; border: 1px solid var(--line);
  border-radius: 6px; padding: 5px 7px; cursor: pointer; margin-left: -20px;
}
html.qs-open { overflow: hidden; }
.qs { position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: center; align-items: flex-start; padding: 9vh 16px 16px; }
.qs[hidden] { display: none !important; }
.qs__backdrop { position: absolute; inset: 0; background: rgba(21, 21, 26, .55); backdrop-filter: blur(3px); }
.qs__panel {
  position: relative; width: 100%; max-width: 620px; max-height: 76vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden;
}
.qs__bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.qs__input { flex: 1; min-width: 0; border: 0; outline: 0; /* l'anneau est porté par .qs__bar */ font: 500 18px/1.2 var(--font-text); color: var(--ink); background: transparent; }
.qs__input::-webkit-search-cancel-button { display: none; }
.qs__esc { font: 600 12px/1 var(--font-ui); border: 1px solid var(--line); background: #f1f0ec; color: var(--muted); border-radius: 6px; padding: 6px 8px; cursor: pointer; }
.qs__body { overflow-y: auto; padding: 8px 8px 10px; }
.qs__label { font: 700 11px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 8px; }
.qs__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 6px; }
.qs__chip { font: 600 13px/1 var(--font-ui); text-decoration: none; color: var(--ink); background: #f1f0ec; padding: 8px 12px; border-radius: 999px; }
.qs__chip:hover { background: var(--red); color: #fff; }
.qs__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.qs__item img:first-child, .qs__noimg { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; flex: none; background: #eee; }
.qs__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.qs__kick { font: 700 11px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.qs__title { font: 600 15px/1.3 var(--font-ui); }
.qs__title mark { background: #ffe58a; color: inherit; border-radius: 3px; padding: 0 1px; }
.qs__cup { width: 34px; height: auto; flex: none; }
.qs__item.is-sel, .qs__item:hover { background: var(--red-soft); }
.qs__all { display: block; margin: 6px 2px 0; padding: 12px 10px; border-top: 1px solid var(--line); font: 700 14px/1 var(--font-ui); color: var(--red); text-decoration: none; border-radius: 10px; }
.qs__all.is-sel, .qs__all:hover { background: var(--red-soft); }
.qs__empty { padding: 16px 10px; color: var(--muted); margin: 0; }
.qs__foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font: 500 12px/1 var(--font-ui); color: var(--muted); background: #faf9f6; }
.qs__foot kbd { font: 600 11px/1 var(--font-ui); border: 1px solid var(--line); background: #fff; border-radius: 5px; padding: 3px 5px; margin-right: 3px; }
@media (max-width: 640px) {
  .search-kbd, .qs__foot { display: none; }
  .search-btn { display: grid !important; width: 34px; height: 34px; }
  .qs { padding: 12px 10px; }
  .qs__panel { max-height: 88vh; }
}

/* Page À propos */
.about-hero { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-hero img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 70% 30%; }
.prose .about-lead { font: 600 21px/1.5 var(--font-ui); color: var(--ink); }
.prose .about-cups { list-style: none; padding: 0; margin: 20px 0 8px; display: grid; gap: 10px; }
.prose .about-cups li { display: flex; align-items: center; gap: 16px; margin: 0; padding: 12px 16px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); }
.prose .about-cups li::before { display: none; }
.about-cups img { width: 56px; height: auto; flex: none; }
.about-cups span { font: 500 16px/1.35 var(--font-ui); }
.about-cups em { display: block; font-style: normal; color: var(--muted); font-size: 15px; margin-top: 2px; }
.about-cta { margin-top: 26px; }
.prose .about-btn { display: inline-block; font: 700 16px/1 var(--font-ui); background: var(--red); color: #fff; padding: 14px 22px; border-radius: 999px; text-decoration: none; }
.prose .about-btn:hover { background: var(--ink); color: #fff; }
.about-legal { margin-top: 36px; color: var(--muted); }
.about-mascot { margin: 8px auto 20px; text-align: center; }
.about-mascot img { display: inline-block; width: 260px; max-width: 70%; height: auto; filter: drop-shadow(0 10px 18px rgba(20, 20, 30, .15)); }
/* News dans une liste mélangée (page auteur, recherche) : même gabarit que les tests, avec image */
.card--news-media { border-top: 0; }
.card--news-media .card__body { height: auto; padding-top: 16px; flex: 1; }
.card--news-media .card__excerpt { -webkit-line-clamp: 2; }


/* -------------------------------------------------------------------------
 * Accessibilité (2026-11-20)
 * ---------------------------------------------------------------------- */
/* Focus clavier bien visible partout (pas au clic souris) */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.masthead :focus-visible, .verdict__score :focus-visible, .final :focus-visible, .welcome :focus-visible { outline-color: #fff; }
.card:focus-visible, .podium__item a:focus-visible { outline-offset: 4px; border-radius: var(--radius); }
.qs__bar:focus-within { box-shadow: inset 0 0 0 3px var(--ink); border-radius: 12px; }
.qs__item:focus-visible, .qs__all:focus-visible, .qs__chip:focus-visible { outline-offset: -3px; }
#contenu:focus { outline: none; }

/* Lien d'évitement : visible dès qu'il reçoit le focus */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 12px 18px; border-radius: 10px;
  background: var(--ink); color: #fff; font: 700 15px/1 var(--font-ui); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Liens dans le texte : toujours soulignés (pas uniquement la couleur) */
.prose a { text-decoration: underline; text-decoration-thickness: 1.5px; }

/* Mouvements réduits si le visiteur l'a demandé à son système */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .card:hover, .podium__item a:hover { transform: none !important; }
}

/* Mode contraste élevé de Windows : garder les contours */
@media (forced-colors: active) {
  .card, .verdict, .final, .tier, .share__btn { border: 1px solid CanvasText; }
  :focus-visible { outline-color: Highlight; }
}
.admin-bar .skip-link:focus { top: 44px; }
.site-footer__copy a { color: inherit; text-underline-offset: 3px; }
.site-footer__copy a:hover { color: var(--red); }
.prose code { font-size: .9em; background: #f1f0ec; padding: 1px 6px; border-radius: 6px; }

/* =========================================================================
   Menu burger (mobile). Activé par site.js : sans JavaScript, le menu reste en ligne.
   ========================================================================= */
.burger { display: none; }
@media (max-width: 640px) {
  .site-header.has-burger .site-header__inner { position: relative; }
  .site-header.has-burger .search-btn { margin-left: auto; }
  .site-header.has-burger .burger {
    display: block; position: relative; flex: none; width: 34px; height: 34px; padding: 0;
    border: 0; border-radius: 999px; background: #f1f0ec; color: var(--ink); cursor: pointer;
  }
  .burger span {
    position: absolute; left: 9px; right: 9px; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }
  .burger span:nth-child(1) { top: 11px; }
  .burger span:nth-child(2) { top: 16px; }
  .burger span:nth-child(3) { top: 21px; }
  .burger[aria-expanded="true"] { background: var(--red); color: #fff; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  .site-header.has-burger .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 2px; padding: 8px 16px 16px;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(20, 20, 30, .10);
  }
  .site-header.has-burger .nav.is-open { display: flex; }
  .site-header.has-burger .nav a { padding: 14px 16px; font-size: 17px; border-radius: 12px; white-space: normal; }
}

/* =========================================================================
   Colonne latérale des articles : sommaire + partage (collants ensemble)
   ========================================================================= */
.toc { position: static; }
.side-sticky { position: sticky; top: 96px; }
.share--side { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); gap: 6px; }
.share--side .share__label { flex-basis: 100%; margin: 0 0 6px; }
.share--side .share__btn { padding: 8px 12px; font-size: 13px; }
/* Sous 960 px la colonne disparaît : le partage revient dans l'article (une seule fois). */
.share--inline { display: none; }
@media (max-width: 960px) { .share--inline { display: flex; } }

/* Section en cours de lecture, surlignée dans le sommaire */
.toc li a.is-current { color: var(--red); border-left-color: var(--red); font-weight: 700; }
