:root {
  --bg: #0e1016;
  --panel: #171a23;
  --panel-2: #1f2330;
  --line: #2a2f3e;
  --text: #eef0f6;
  --muted: #9aa1b5;
  --accent: #ffcc00;
  --hot: #ff4d4d;
  --good: #3ddc84;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14,16,22,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.logo img { width: 36px; height: 36px; flex: 0 0 auto; }
.logo-txt span { color: var(--accent); }
nav.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
nav.cats::-webkit-scrollbar { display: none; }
.nav-item { position: relative; }
.nav-top {
  display: flex; align-items: center; gap: 4px;
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--muted); white-space: nowrap; border: 1px solid transparent;
}
.nav-top:hover { color: var(--text); }
.nav-item.active > .nav-top { color: var(--text); background: var(--panel-2); border-color: var(--line); }
.caret { font-size: 11px; opacity: .7; display: none; }
.dropdown { display: none; }

/* Menus déroulants : seulement sur grand écran (sur mobile, les onglets de sous-rubrique prennent le relais) */
@media (min-width: 900px) {
  nav.cats { overflow: visible; }
  .caret { display: inline; }
  .dropdown {
    position: absolute; top: 100%; left: 0; min-width: 210px; padding: 8px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.45); z-index: 20;
  }
  .nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown { display: block; }
  .dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  .dropdown a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
  .dropdown a:hover, .dropdown a:focus { background: var(--panel-2); color: var(--text); }
  .nav-item:hover > .dd-group, .nav-item:focus-within > .dd-group { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; min-width: 380px; }
  .dropdown .dd-head { color: var(--text); font-weight: 800; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }
}
/* Choix Switch 2 / Switch en tête des pages Nintendo (utile sur mobile, sans menu déroulant). */
.console-switch { display: flex; gap: 8px; margin: 0 0 10px; }
.console-switch a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--muted); }
.console-switch a.active { background: var(--accent); color: #111; border-color: var(--accent); }

/* Onglets de sous-rubrique */
.subtabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 16px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs a { padding: 10px 4px; margin-right: 14px; font-weight: 600; font-size: 15px; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.subtabs a:hover { color: var(--text); }
.subtabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.subtabs .count { font-size: 12px; color: var(--muted); background: var(--panel-2); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.empty { background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); margin: 10px 0 20px; }
.empty strong { color: var(--text); }

/* Format physique / numérique */
.fmt { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.thumb .fmt { position: absolute; bottom: 10px; left: 10px; }
.fmt.physique { background: #e8f7ee; color: #12753a; }
.fmt.numerique { background: #ede7ff; color: #5a2fc2; }

/* Catalogue */
.plat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.plat-chips span { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--panel-2); border-radius: 6px; padding: 3px 8px; }
.from { color: var(--muted); font-size: 14px; white-space: nowrap; }
.badge.new { background: var(--accent); color: #111; }
.ed-chip { align-self: flex-start; font-size: 12px; font-weight: 700; color: #c9b6ff; background: rgba(90,47,194,.25); border-radius: 6px; padding: 3px 8px; }
.list-view .ed-chip { flex: 0 0 auto; }
.editions-table tr.current td { background: rgba(90,47,194,.15); }
.ed-here { font-size: 13px; color: var(--muted); font-weight: 600; }
.ed-plats { color: var(--muted); font-size: 14px; }
.badge.pre { background: #5a2fc2; color: #fff; }
.tag.pre { background: #5a2fc2; color: #fff; }
.preorder-info { margin: 0 0 16px; }

/* Catalogue : populaires + recherche */
.popular-block {
  background: linear-gradient(135deg, rgba(255,77,77,.10), rgba(255,204,0,.06));
  border: 1px solid var(--line); border-radius: 18px; padding: 6px 18px 20px; margin: 8px 0 30px;
}
.popular-block .section-title { margin-top: 18px; margin-bottom: 4px; }
.popular-source { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.popular-more { margin: 14px 0 0; font-weight: 600; }
.popular-more a { color: var(--accent); }
.popular-block.anticipated { background: linear-gradient(135deg, rgba(90,47,194,.18), rgba(255,204,0,.05)); }
.popular-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card.popular { border-color: rgba(255,204,0,.45); }
.rank-badge {
  position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
  background: var(--accent); color: #111; box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.search-box { position: relative; margin: 6px 0 12px; max-width: 560px; }
.search-box input {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px 13px 44px; outline: none;
}
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,204,0,.15); }
.search-box input::placeholder { color: var(--muted); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; opacity: .7; }
.search-count { color: var(--muted); font-size: 14px; margin: 0 0 10px; min-height: 1em; }

/* Catalogue : barre d'outils + affichage en liste */
.list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.list-tools .filters { margin: 0; }
.view-toggle { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.vt { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; background: transparent; color: var(--muted); border: 0; border-radius: 8px; padding: 6px 12px; }
.vt.active { background: var(--panel-2); color: var(--text); }
.grid.list-view { display: flex; flex-direction: column; gap: 6px; }
.list-view .game-card { flex-direction: row; align-items: center; border-radius: 10px; }
.list-view .game-card:hover { transform: none; }
.list-view .game-card .thumb { flex: 0 0 64px; width: 64px; height: 64px; padding: 4px; }
.list-view .game-card .thumb img { max-height: 56px; max-width: 100%; }
.list-view .game-card .thumb .badge, .list-view .game-card .thumb .rank-badge { display: none; }
.list-view .game-card .body { flex-direction: row; align-items: center; gap: 14px; padding: 8px 14px; flex: 1; min-width: 0; }
.list-view .game-card .cat-tag { display: none; }
.list-view .game-card h3 { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-view .game-card .plat-chips { flex: 0 1 auto; flex-wrap: nowrap; overflow: hidden; }
.list-view .game-card .prices { margin: 0; flex: 0 0 auto; min-width: 110px; justify-content: flex-end; }
.list-view .game-card .price { font-size: 18px; }
@media (max-width: 640px) {
  .list-view .game-card .plat-chips { display: none; }
  .list-view .game-card .prices { min-width: 0; }
  .list-view .game-card h3 { white-space: normal; font-size: 14px; }
}
@media (max-width: 900px) { .popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .popular-grid { grid-template-columns: 1fr; } }
.game-head { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; margin-top: 8px; }
.game-head .pic { background: #fff; border-radius: 12px; padding: 14px; display: grid; place-items: center; }
.game-head .pic img { max-height: 260px; object-fit: contain; }
.game-intro { color: #d9dcea; font-size: 17px; margin: 0 0 10px; }
.pt-title { font-size: 20px; margin: 34px 0 12px; }
.plat-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.plat-btn {
  font: inherit; cursor: pointer; text-align: left; min-width: 120px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 15px;
}
.plat-btn small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); margin-top: 2px; }
.plat-btn:hover { border-color: #3b4256; }
.plat-btn.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plat-btn.active small { color: var(--accent); }
.plat-name { font-size: 18px; margin: 0 0 6px; }
.pt-summary { color: #d9dcea; margin: 0 0 12px; }
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.price-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table tr.best td { background: rgba(255, 204, 0, .07); }
.price-table .rank { color: var(--muted); font-weight: 700; width: 36px; }
.pt-price { font-size: 22px; font-weight: 800; white-space: nowrap; }
.price-table tr.best .pt-price { color: var(--accent); }
.pt-diff { color: var(--muted); white-space: nowrap; font-weight: 600; }
.best-flag { background: var(--good); color: #0b2a17; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 6px; }
.pt-go { text-align: right; }
.btn.small { margin: 0; padding: 8px 14px; font-size: 14px; }
.third { font-size: 12px; color: #ffb347; }
.pt-missing, .pt-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.pt-note { background: var(--panel); border-left: 3px solid var(--accent); padding: 10px 12px; border-radius: 6px; color: #d9dcea; }
@media (max-width: 640px) {
  .game-head { grid-template-columns: 1fr; }
  .game-head .pic img { max-height: 200px; }
  .price-table th:first-child, .price-table td.rank { display: none; }
  .price-table td { padding: 12px 10px; }
  .pt-price { font-size: 18px; }
  .plat-btn { min-width: 0; flex: 1 1 calc(50% - 10px); }
}

/* Étiquettes en haut d'article */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tag { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 6px; border: 1px solid transparent; }
.tag.cat { background: transparent; }
.tag.shop { color: #fff; position: static; font-size: 12px; padding: 5px 10px; }
.tag.discount { background: var(--hot); color: #fff; }

/* Hero */
.hero { padding: 36px 0 20px; }
.hero h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -1px; }
.hero p { color: var(--muted); margin: 0; max-width: 640px; }
.hero .stamp { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line); padding: 5px 10px; border-radius: 8px; }

/* Grid */
.section-title { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; font-size: 20px; }
.section-title .dot { width: 10px; height: 10px; border-radius: 50%; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); border-color: #3b4256; }
.card .thumb { background: #fff; height: 210px; display: flex; align-items: center; justify-content: center; position: relative; padding: 14px; }
.card .thumb img { max-height: 180px; max-width: 75%; object-fit: contain; }
.badge {
  position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 800;
  background: var(--hot); color: #fff; padding: 4px 8px; border-radius: 6px;
}
.shop {
  position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: 6px; color: #fff;
}
.shop.Amazon { background: #232f3e; }
.shop.Leclerc { background: #0066cc; }
.shop.Cdiscount { background: #c4002b; }

/* Filtres marchands */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.chip {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--panel); color: var(--muted); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px;
}
.chip:hover { color: var(--text); }
.chip.active { background: var(--accent); color: #111; border-color: var(--accent); }
.see-all { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--muted); }
.see-all:hover { color: var(--text); }

/* Offres terminées */
.card.expired { opacity: .55; }
.card.expired .badge { background: #555; }
.expired-banner { margin-top: 18px; background: #3a2a10; border: 1px solid #6b4d1a; color: #ffd27a; padding: 12px 14px; border-radius: 10px; }
.btn.disabled { background: var(--panel-2); color: var(--muted); cursor: default; }
.aff-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
[hidden] { display: none !important; }

/* Pages texte */
.prose h2 { font-size: 20px; margin: 28px 0 8px; }
.prose p { color: #d9dcea; }
.prose a { color: var(--accent); }
footer p { margin: 0 0 8px; max-width: 760px; }
footer .links a { color: var(--text); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cat-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.card h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.prices { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; }
.price { font-size: 24px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.old { color: var(--muted); text-decoration: line-through; font-size: 14px; white-space: nowrap; }
.hot-flag { color: var(--hot); font-size: 12px; font-weight: 700; }

/* Article */
.article { max-width: 760px; margin: 0 auto; padding: 28px 0 60px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--text); }
.article h1 { font-size: clamp(24px, 3.6vw, 34px); line-height: 1.2; letter-spacing: -.5px; margin: 8px 0 12px; }
.meta { color: var(--muted); font-size: 14px; }
.deal-box {
  margin: 24px 0; display: grid; grid-template-columns: 200px 1fr; gap: 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.deal-box .pic { background: #fff; border-radius: 10px; display: grid; place-items: center; padding: 12px; }
.deal-box .pic img { max-height: 200px; object-fit: contain; }
.deal-box .product { font-weight: 600; margin-bottom: 6px; }
.deal-box .price { font-size: 34px; }
.deal-box .save { color: var(--good); font-weight: 700; font-size: 14px; }
.deal-box .ref { color: var(--muted); font-size: 13px; margin-top: 4px; }
.btn {
  display: inline-block; margin-top: 14px; background: var(--accent); color: #111;
  font-weight: 800; padding: 12px 20px; border-radius: 10px;
}
.btn:hover { filter: brightness(1.08); }
.content p { font-size: 17px; margin: 0 0 16px; color: #d9dcea; }
.content h2 { font-size: 21px; margin: 30px 0 10px; }
.disclaimer {
  margin-top: 30px; font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 14px;
}
.more { margin-top: 40px; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 24px 0 40px; margin-top: 40px; }

@media (max-width: 640px) {
  header.top .wrap { gap: 12px; }
  .logo { font-size: 18px; gap: 6px; }
  .logo img { width: 30px; height: 30px; }
  .deal-box { grid-template-columns: 1fr; }
  .deal-box .pic img { max-height: 180px; }
}

/* Packs consoles : prix normal (sans promo) */
.badge.normal { background: #3a4052; color: #e4e7f0; }
.shop.tie { background: #2f7d4f; }
.tag.normal { background: #3a4052; color: #e4e7f0; border-color: #3a4052; }
.family-title { font-size: 17px; margin: 18px 0 10px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.family-title .count { font-size: 12px; color: var(--muted); background: var(--panel-2); padding: 2px 8px; border-radius: 999px; }
.packs-intro { margin-bottom: 0; }
.packs-intro .pt-note { margin-top: 0; }

/* Fiche jeu : choix de l'édition (même principe que la plateforme) */
.ed-picker .ed-btn { border-color: rgba(140,100,255,.45); }
.ed-picker .ed-btn.active { border-color: #a98bff; box-shadow: 0 0 0 1px #a98bff inset; }
.ed-picker .ed-btn.active small { color: #c9b6ff; }
.ed-count { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 8px; }
.ed-current { margin: 4px 0 8px; color: #c9b6ff; }
.ed-h { margin: 6px 0; }
.badge.resale { background: #7a4b12; color: #ffd27a; }
.resale-note { background: #3a2a10; border: 1px solid #6b4d1a; color: #ffd27a; padding: 10px 12px; border-radius: 10px; font-size: 14px; }


/* Catalogue en liste : petite étiquette avec la date de sortie des précommandes (en grille, le badge sur l'image suffit) */
.pre-date { display: none; }
.list-view .game-card h3 { display: flex; align-items: center; gap: 10px; }
.list-view .game-card h3 .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Quand la place manque, ce sont les prix par plateforme qui rétrécissent en premier, pas le titre. */
.list-view .game-card .plat-chips { flex-shrink: 20; min-width: 0; }
.list-view .pre-date { display: inline-block; flex: 0 0 auto; font-size: 12px; font-weight: 700; color: #8ff0de; background: rgba(20,140,120,.28); border: 1px solid rgba(110,230,205,.35); border-radius: 6px; padding: 3px 8px; }
@media (max-width: 640px) {
  .list-view .game-card h3 { flex-direction: column; align-items: flex-start; gap: 4px; }
  .list-view .game-card h3 .t { overflow: visible; }
}

/* Fiche jeu : contenu de l'édition */
.ed-contents { margin: 6px 0 10px; padding: 10px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.ed-contents ul { margin: 6px 0 4px; padding-left: 20px; }
.ed-contents li { margin: 2px 0; }
.ed-contents small { color: var(--muted); }
.plat-release { color: var(--muted); font-size: 14px; margin: -4px 0 10px; }

/* Guides d'achat */
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 10px 0 30px; }
.guide-item { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.guide-item:hover { border-color: var(--accent); }
.guide-item span { color: var(--muted); font-size: 14px; }
.guide h2 { margin-top: 26px; }

/* Tops du moment : même espace entre les boutons de tri et les cartes qu'entre deux lignes de cartes */
.popular-block .filters { margin-bottom: 16px; }

/* Menu : maison pour l'accueil */
.nav-home { display: inline-flex; align-items: center; justify-content: center; padding-left: 12px; padding-right: 12px; }
.nav-home svg { display: block; }
.nav-item.active .nav-home { color: var(--accent); }

/* Planning des sorties */
.plan-month { margin: 22px 0; }
.plan-month .count { font-size: 13px; color: var(--muted); background: var(--panel-2); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.plan-list { display: flex; flex-direction: column; gap: 6px; }
.plan-row { display: grid; grid-template-columns: 110px 48px 1fr auto; align-items: center; gap: 14px; padding: 8px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.plan-row:hover { border-color: var(--accent); }
.plan-row img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }
.plan-date { font-weight: 800; color: var(--accent); font-size: 14px; text-transform: capitalize; }
.plan-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.plan-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-plats { display: flex; flex-wrap: wrap; gap: 4px; }
.plan-plats span { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--panel-2); border-radius: 5px; padding: 2px 6px; }
.plan-price { text-align: right; font-weight: 800; color: var(--accent); font-size: 18px; white-space: nowrap; }
.plan-price small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
@media (max-width: 640px) {
  .plan-row { grid-template-columns: 44px 1fr auto; gap: 10px; }
  .plan-date { grid-column: 1 / -1; font-size: 13px; }
  .plan-row img { width: 44px; height: 44px; }
  .plan-name strong { white-space: normal; font-size: 14px; }
}
/* Planning : mois repliables */
details.plan-month { margin: 10px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
details.plan-month > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: 18px; font-weight: 800; }
details.plan-month > summary::-webkit-details-marker { display: none; }
details.plan-month > summary .dot { width: 10px; height: 10px; border-radius: 50%; }
details.plan-month > summary:hover { color: var(--accent); }
.plan-toggle { margin-left: auto; color: var(--muted); transition: transform .15s; }
details.plan-month[open] .plan-toggle { transform: rotate(180deg); }
details.plan-month .plan-list, details.plan-month .pt-note { padding: 0 12px 12px; }
details.plan-month .pt-note { margin: 0; }

/* Catalogue : classement par lettre */
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 4px; }
.letter { font: inherit; font-size: 13px; font-weight: 700; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.letter:hover:not(:disabled) { color: var(--text); border-color: #3b4256; }
.letter.active { background: var(--accent); color: #111; border-color: var(--accent); }
.letter:disabled { opacity: .35; cursor: default; }

/* Recherche rapide (en-tête) */
header.top .wrap { max-width: 1340px; }
.qs { position: relative; margin-left: auto; flex: 1 1 240px; max-width: 300px; min-width: 200px; }
.qs-toggle { display: none; background: none; border: 0; color: var(--muted); padding: 8px; cursor: pointer; border-radius: 999px; }
.qs-toggle:hover { color: var(--text); background: var(--panel-2); }
.qs-input { width: 100%; height: 38px; padding: 0 14px 0 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%239aa1b5' stroke-width='2.2'/%3E%3Cpath d='m20 20-4.2-4.2' stroke='%239aa1b5' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 12px center / 16px; color: var(--text); font: inherit; font-size: 14px; outline: none; }
.qs-input:focus { border-color: var(--accent); }
.qs-input::-webkit-search-cancel-button { filter: invert(.6); }
.qs-res { position: absolute; top: calc(100% + 8px); right: 0; width: min(440px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.5); padding: 6px; z-index: 30; }
.qs-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; }
.qs-item:hover, .qs-item.on { background: var(--panel-2); }
.qs-item img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 6px; flex: 0 0 auto; }
.qs-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.qs-t { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-m { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-k { color: var(--accent); font-weight: 700; }
.qs-p { font-weight: 800; color: var(--accent); font-size: 14px; white-space: nowrap; }
.qs-all { display: block; text-align: center; padding: 9px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.qs-all:hover { color: var(--text); }
.qs-none { padding: 14px; color: var(--muted); font-size: 14px; text-align: center; }
/* Écrans moyens et petits : une loupe qui ouvre le champ sous l'en-tête */
@media (max-width: 1320px) {
  .qs { flex: 0 0 auto; position: static; min-width: 0; margin-left: auto; }
  .qs-toggle { display: block; }
  .qs-form { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 10px 16px; background: rgba(14,16,22,.97); border-bottom: 1px solid var(--line); }
  .qs.open .qs-form { display: block; }
  .qs-res { top: calc(100% + 58px); right: 16px; left: 16px; width: auto; }
}

/* Accueil : bouton « Voir les N bons plans » sous chaque catégorie */
.more-wrap { text-align: center; margin-top: 18px; }
.more-btn { margin-top: 0; background: transparent; color: var(--text, #fff); border: 1px solid var(--line); padding: 12px 22px; }
.more-btn:hover { border-color: var(--accent); color: var(--accent); filter: none; }
@media (max-width: 600px) { .more-btn { display: block; width: 100%; box-sizing: border-box; } }
/* Accueil : rangées pleines. Colonnes fixées ici (4 dès 1120px, 3 dès 844px, 2 dès 568px, sinon 1) ;
   build.js marque h4/h3/h2/h1 les cartes en trop pour chaque cas. */
.home-grid > .hc { display: contents; }
.home-grid { grid-template-columns: 1fr; }
@media (min-width: 1120px) { .home-grid { grid-template-columns: repeat(4, 1fr); } .home-grid > .h4 { display: none; } }
@media (min-width: 844px) and (max-width: 1119px) { .home-grid { grid-template-columns: repeat(3, 1fr); } .home-grid > .h3 { display: none; } }
@media (min-width: 568px) and (max-width: 843px) { .home-grid { grid-template-columns: repeat(2, 1fr); } .home-grid > .h2 { display: none; } }
@media (max-width: 567px) { .home-grid > .h1 { display: none; } }
.more-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 600px) { .more-row .more-btn { flex: 1 1 calc(50% - 10px); width: auto; display: block; text-align: center; } }

/* Emplacements publicitaires (AdSense) */
.ad { margin: 28px 0; text-align: center; min-height: 90px; }
.ad-label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.ad-preview { display: flex; align-items: center; justify-content: center; min-height: 110px; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 14px; }
.ad-preview[hidden] { display: none; }

.todo { background: rgba(255, 196, 0, .15); color: #ffcf4d; padding: 0 4px; border-radius: 4px; }
.prose ul { padding-left: 20px; } .prose li { margin: 0 0 10px; }

/* Fiche jeu : encadré d'infos sous l'image (même largeur que l'image), synopsis à droite */
.pic-col { display: flex; flex-direction: column; gap: 12px; }
.about-facts { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel, rgba(255,255,255,.03)); display: flex; flex-direction: column; gap: 10px; }
.about-facts div { margin: 0; }
.about-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
.about-facts dd { margin: 0; font-weight: 600; font-size: 14px; line-height: 1.35; }
.game-synopsis { font-size: 16px; line-height: 1.65; margin: 10px 0 14px; color: #d9dcea; }
@media (max-width: 600px) { .about-facts { display: grid; grid-template-columns: 1fr 1fr; } }

.ed-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: rgba(255,255,255,.03); border-radius: 0 8px 8px 0; }

/* Essai « plateforme d'abord » : lien « Contenu de l'édition » (discret, pas un bouton de choix) et petite fenêtre dans la page */
.ed-info-link { align-self: center; display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 4px 2px; margin-left: 6px; color: var(--muted); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.ed-info-txt { text-decoration: underline; text-underline-offset: 3px; }
.ed-info-link:hover { color: var(--accent); }
.ed-info-link[hidden] { display: none; }
.ed-info-ic { display: inline-grid; place-items: center; width: 17px; height: 17px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 11px; font-weight: 800; font-style: normal; text-decoration: none; line-height: 1; }
.ed-dialog { max-width: 460px; width: calc(100% - 32px); border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2, #1b1d27); color: inherit; padding: 22px 24px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.ed-dialog::backdrop { background: rgba(0,0,0,.55); }
.ed-dialog h3 { margin: 0 28px 12px 0; font-size: 18px; }
.ed-dialog ul { margin: 0 0 12px; padding-left: 20px; } .ed-dialog li { margin: 0 0 8px; line-height: 1.5; }
.ed-dialog small { color: var(--muted); }
.ed-dialog-close { position: absolute; top: 10px; right: 12px; background: transparent; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.ed-dialog-close:hover { color: var(--accent); }

/* Fiche jeu : la ligne « Prix relevés le… » se cale en bas de la colonne de droite, alignée sur le bas de l'encadré
   d'infos (Éditeur) sous l'image, quelle que soit la longueur du synopsis. */
.game-head { align-items: stretch; }
.game-head > div:last-child { display: flex; flex-direction: column; }
.game-head > div:last-child > .meta { margin-top: auto; padding-top: 8px; }

/* Fiche jeu : rien ne bouge quand on change de plateforme ou d'édition.
   - l'image tient dans un cadre de hauteur fixe (les jaquettes n'ont pas toutes les mêmes proportions) ;
   - le titre des autres éditions (h2, un seul h1 par page pour Google) a exactement le style du h1. */
.game-head .pic { height: 300px; box-sizing: border-box; overflow: hidden; display: flex; align-items: center; justify-content: center; }
/* 300 px de cadre moins 2 × 14 px de marge : la jaquette entière tient toujours dans le cadre, jamais coupée. */
.game-head .pic img { max-height: 272px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.article .game-head .ed-h { font-size: clamp(24px, 3.6vw, 34px); line-height: 1.2; letter-spacing: -.5px; margin: 8px 0 12px; }

/* Accueil : bascule « Les plus populaires du moment » / « Les tops du moment » (titres cliquables) */
.top-switch { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 6px; }
.top-tab { background: none; border: 0; padding: 4px 0 6px; font: inherit; font-size: clamp(16px, 1.6vw, 20px); font-weight: 800; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; }
.top-tab:hover { color: var(--text, #fff); }
.top-tab.active { color: var(--text, #fff); border-bottom-color: var(--hot, #ff5a3c); }

/* Accueil, « Les tops du moment » : 4 cartes, les autres derrière « Voir plus » */
.hot-wrap:not(.open) .hot-extra { display: none; }
.hot-more { cursor: pointer; font: inherit; font-weight: 800; }

/* Carte classée (1, 2, 3…) : le numéro reste en haut à gauche, l étiquette de date (« Sortie le… ») descend en bas à gauche */
.thumb:has(.rank-badge) .badge { top: auto; bottom: 10px; }

/* Accueil : noms complets des 3 classements sur grand écran, noms courts (Ventes, Promos, Précos) sur téléphone */
.tt-short { display: none; }
@media (max-width: 600px) { .tt-long { display: none; } .tt-short { display: inline; } .top-switch { gap: 6px 18px; } }
@media (max-width: 600px) { .top-tab { font-size: 13px; } .top-switch { gap: 4px 6px; justify-content: space-between; flex-wrap: nowrap; } }
/* Accueil : même hauteur de texte d intro pour les 3 onglets, la grille ne bouge pas en changeant d onglet */
.top-view .popular-source { min-height: 2lh; }
@media (max-width: 600px) { .top-view .popular-source { min-height: 3lh; } }
/* Fiches Switch / Switch 2 : de l air entre la note et le titre du tableau de prix qui suit */
.pf-eds .ed-note { margin-bottom: 26px; }
/* Fiche : jeu disponible seulement en retrait magasin (Click & Collect) */
.cc-only { font-size: 14.5px; margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--hot); background: rgba(255,255,255,.04); border-radius: 0 8px 8px 0; }
/* Accueil, bloc Consoles : espace entre les boutons de console et les cartes */
.hc-block .filters { margin-bottom: 18px; }
.hc-empty { color: var(--muted); margin: 6px 0 4px; }
/* Fil d Ariane : de l air sous le menu, plus serré au-dessus du titre de la page */
.crumbs { margin-top: 20px; margin-bottom: 8px; }
.crumbs + .hero { padding-top: 6px; }
.article .crumbs { margin-top: 0; }
/* Catalogue : bascule Tous les jeux / Consoles, collée au texte d intro */
.cat-switch { margin: 6px 0 14px; }
.cat-consoles .filters { margin-bottom: 16px; }
.cat-switch { justify-content: flex-start; gap: 6px 26px; }
@media (max-width: 600px) { .cat-switch .top-tab { font-size: 17px; } }
/* Catalogue > Consoles : intro aérée, filtres et tri sur une ligne */
.cat-consoles .pt-note { margin-bottom: 18px; }
.cc-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.cc-tools .filters { margin: 0; }
.cc-sort { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.cc-sort select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 14px; }
/* Boutons de plateforme juste sous l intro (Planning…) : espace régulier au-dessus et en dessous */
.hero + .filters { margin: 0 0 20px; }

/* Rythme régulier dans le bloc d'accueil : onglets → texte 14px, texte → boutons 16px, boutons → cartes 20px.
   La hauteur du texte est égalisée par script (voir homeTopBlock), plus de min-height fixe en lignes. */
.top-switch { margin-bottom: 14px; }
.top-view .popular-source, .popular-block .popular-source { min-height: 0; margin: 0 0 16px; line-height: 1.5; }
@media (max-width: 600px) { .top-view .popular-source { min-height: 0; } }
.popular-block .filters, .hc-block .filters { margin: 0 0 20px; }

/* Même rythme sur toutes les pages : texte d'intro → boutons 20px, boutons → onglets/contenu 20px. */
.console-switch { margin-bottom: 20px; }
.subtabs { margin-bottom: 20px; }
.cat-consoles .pt-note { margin-bottom: 20px; }
.cc-tools { margin-bottom: 20px; }
.cat-switch { margin-bottom: 20px; }
.list-tools + .letters { margin-top: 14px; }
.hero + .subtabs { margin-top: 0; }

/* Source des classements (Amazon) : en bas du bloc, en petit et discret. */
.src-note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--muted); opacity: .75; }
.top-switch { margin-bottom: 18px; }
