/*
Theme Name: OhMyBlox
Description: Thème OhMyBlox : fiches de jeux Roblox, guides, tier lists, codes vérifiés et classement, en français. Site indépendant.
Version: 0.9.4
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: roblox-pilote
*/

/* =========================================================================
   1. Variables communes (couleurs, typographie, espacements, rayons, bordures, états)
   ========================================================================= */
:root {
    /* Couleurs */
    --wb-bg: #f2f6fa;            /* fond clair légèrement bleuté */
    --wb-surface: #ffffff;
    --wb-surface-2: #e8f0f6;
    --wb-ink: #0d1b2e;           /* bleu nuit profond */
    --wb-ink-2: #172b47;
    --wb-muted: #4a5b73;
    --wb-line: #c9d6e2;
    --wb-line-soft: #dde6ee;
    --wb-teal: #19c2b3;          /* turquoise lumineux, accent principal (fonds) */
    --wb-teal-ink: #00756c;      /* turquoise lisible en texte sur fond clair */
    --wb-teal-soft: #d6f4f0;
    --wb-coral: #ff6f5e;         /* corail, avec retenue */
    --wb-coral-ink: #b8382a;
    --wb-coral-soft: #ffe4df;
    --wb-sun: #ffd23f;           /* repère des codes */
    --wb-sun-soft: #fff4cc;
    --wb-good: #146c4a;
    --wb-warn-bg: #fff6e5;
    --wb-warn-line: #f0c36d;
    --wb-warn-ink: #5a3d00;
    --wb-focus: #ff9f1c;

    /* Typographie */
    --wb-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --wb-font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    --wb-text: 1rem;
    --wb-small: .9rem;
    --wb-tiny: .78rem;
    --wb-h1: clamp(2rem, 4.6vw, 3.1rem);
    --wb-h2: clamp(1.35rem, 2.6vw, 1.75rem);
    --wb-h3: 1.15rem;

    /* Espacements */
    --wb-s1: 4px; --wb-s2: 8px; --wb-s3: 12px; --wb-s4: 16px; --wb-s5: 24px; --wb-s6: 32px; --wb-s7: 48px; --wb-s8: 72px;

    /* Rayons et bordures */
    --wb-r-s: 6px; --wb-r-m: 10px; --wb-r-l: 16px; --wb-r-pill: 999px;
    --wb-border: 1.5px solid var(--wb-line);
    --wb-border-strong: 2px solid var(--wb-ink);
    --wb-offset: 4px 4px 0;      /* léger décalage graphique */

    /* États interactifs */
    --wb-focus-ring: 0 0 0 3px var(--wb-focus);
    --wb-ease: .15s ease;

    /* Compatibilité avec les anciens noms */
    --bg: var(--wb-bg); --surface: var(--wb-surface); --ink: var(--wb-ink); --muted: var(--wb-muted);
    --accent: var(--wb-teal-ink); --line: var(--wb-line); --good: var(--wb-good); --radius: var(--wb-r-l);
}

/* =========================================================================
   2. Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wb-bg); color: var(--wb-ink); font: var(--wb-text)/1.65 var(--wb-font); overflow-wrap: break-word; }
a { color: var(--wb-teal-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--wb-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--wb-focus); outline-offset: 2px; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; color: var(--wb-ink); }
h1 { font-size: var(--wb-h1); margin: .3em 0 .35em; }
h2 { font-size: var(--wb-h2); margin: 1.4em 0 .5em; }
h3 { font-size: var(--wb-h3); }
p { margin: .8em 0 1.2em; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; }
.wb-skip:focus { position: fixed !important; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; background: var(--wb-sun); color: var(--wb-ink); font-weight: 800; border-radius: var(--wb-r-m); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* =========================================================================
   3. Mise en page
   ========================================================================= */
.rb-wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.rb-main { padding-block: var(--wb-s6) var(--wb-s8); min-height: 55vh; }
.rb-section { margin-top: var(--wb-s7); }
.rb-topline { display: flex; flex-wrap: wrap; gap: var(--wb-s3) var(--wb-s4); align-items: baseline; justify-content: space-between; }
.rb-topline > * { margin: 0; }
.rb-topline a { font-weight: 700; }
.rb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--wb-s5); }
.rb-grid--fixe { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
/* Listes paginées : 4 colonnes (/jeux/, /codes/) ou 3 (/guides/, /tier-lists/) sur ordinateur, moins selon la largeur. */
.rb-grid--4, .rb-grid--3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 601px) { .rb-grid--4, .rb-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .rb-grid--4, .rb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .rb-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rb-section > .rb-grid, .wb-section-head + .rb-grid { margin-top: var(--wb-s5); }
.rb-lead { font-size: 1.15rem; color: var(--wb-muted); max-width: 70ch; }
.rb-meta { color: var(--wb-muted); font-size: var(--wb-small); }
.rb-hero { padding: var(--wb-s4) 0 var(--wb-s3); }
.rb-panel { background: var(--wb-surface); border: var(--wb-border); border-radius: var(--wb-r-l); padding: var(--wb-s5); }
.rb-empty { background: var(--wb-surface); border: 1.5px dashed var(--wb-line); border-radius: var(--wb-r-l); padding: 18px 20px; }

/* =========================================================================
   4. En-tête et menu
   ========================================================================= */
.wb-header { position: relative; z-index: 20; background: var(--wb-ink); color: #fff; border-bottom: 4px solid var(--wb-teal); }
.wb-header-bar { min-height: 72px; display: flex; align-items: center; gap: var(--wb-s5); }
.wb-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: 0 0 auto; }
.wb-brand:hover { color: #fff; }
.wb-brand:focus-visible { outline-color: var(--wb-sun); }
.wb-symbol { width: 40px; height: 40px; flex: 0 0 auto; }
.wb-m--base { fill: #fff; }
.wb-m--top, .wb-m--base2 { fill: var(--wb-teal); }
.wb-m--accent { fill: var(--wb-coral); }
.wb-wordmark { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.wb-wordmark span { color: var(--wb-teal); }
.wb-menu-panel { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--wb-s5); }
.rb-menu { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.rb-menu a { display: block; padding: 8px 12px; border-radius: var(--wb-r-m); color: #fff; font-weight: 700; text-decoration: none; transition: background var(--wb-ease); }
.rb-menu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.rb-menu a[aria-current="page"] { background: var(--wb-teal); color: var(--wb-ink); }
.rb-menu a:focus-visible { outline: 3px solid var(--wb-sun); outline-offset: 1px; }
.wb-header-search { display: flex; align-items: stretch; width: min(320px, 100%); background: #fff; border-radius: var(--wb-r-m); border: 2px solid #fff; }
.wb-header-search input { flex: 1 1 auto; min-width: 0; border: 0; border-radius: var(--wb-r-m) 0 0 var(--wb-r-m); padding: 9px 12px; font: inherit; font-size: .95rem; color: var(--wb-ink); background: transparent; }
.wb-header-search input:focus-visible { outline: 3px solid var(--wb-sun); outline-offset: 2px; }
.wb-header-search button { flex: 0 0 auto; display: grid; place-items: center; width: 44px; border: 0; border-radius: 0 8px 8px 0; background: var(--wb-teal); color: var(--wb-ink); cursor: pointer; }
.wb-header-search button:hover { background: #3dd6c8; }
.wb-header-search button:focus-visible { outline: 3px solid var(--wb-sun); outline-offset: 2px; }
.wb-menu-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 2px solid #fff; border-radius: var(--wb-r-m); background: transparent; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.wb-menu-toggle:hover { background: rgba(255, 255, 255, .1); }
.wb-menu-toggle:focus-visible { outline: 3px solid var(--wb-sun); outline-offset: 2px; }
.wb-menu-toggle-icon { display: grid; gap: 4px; width: 18px; }
.wb-menu-toggle-icon span { display: block; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform var(--wb-ease), opacity var(--wb-ease); }
.wb-menu-ouvert .wb-menu-toggle-icon span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.wb-menu-ouvert .wb-menu-toggle-icon span:nth-child(2) { opacity: 0; }
.wb-menu-ouvert .wb-menu-toggle-icon span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 899px) {
    .wb-header-bar { flex-wrap: wrap; gap: var(--wb-s3); padding-block: 10px; min-height: 64px; }
    .wb-wordmark { font-size: 1.3rem; }
    .wb-symbol { width: 34px; height: 34px; }
    .js .wb-menu-toggle { display: inline-flex; }
    .wb-menu-panel { flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: var(--wb-s3); padding: var(--wb-s2) 0 var(--wb-s3); }
    .js .wb-menu-panel { display: none; }
    .js.wb-menu-ouvert .wb-menu-panel { display: flex; }
    .rb-menu { flex-direction: column; gap: 2px; }
    .rb-menu a { padding: 12px 10px; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .12); border-radius: var(--wb-r-s); }
    .wb-header-search { width: 100%; }
    .wb-header-search input { padding: 12px; font-size: 1rem; }
}
/* 320 px : « OhMyBlox » et le bouton « Fermer » (plus large que « Menu ») tiennent sur la même ligne. */
@media (max-width: 359px) {
    .wb-menu-toggle { padding: 8px 10px; gap: 6px; }
}

/* =========================================================================
   5. Boutons, champs, badges, fil d'Ariane, pagination
   ========================================================================= */
.rb-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border: 2px solid var(--wb-ink); border-radius: var(--wb-r-m); background: var(--wb-teal); color: var(--wb-ink); font: inherit; font-weight: 800; line-height: 1.25; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--wb-ink); transition: transform var(--wb-ease), box-shadow var(--wb-ease), background var(--wb-ease); }
.rb-button:hover { color: var(--wb-ink); background: #3dd6c8; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--wb-ink); }
.rb-button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--wb-ink); }
.rb-button:focus-visible { outline: 3px solid var(--wb-focus); outline-offset: 3px; }
.rb-button--secondary, .wb-button--guide { background: var(--wb-surface); color: var(--wb-ink); }
.rb-button--secondary:hover, .wb-button--guide:hover { background: var(--wb-surface-2); }
.rb-button--tier { background: var(--wb-coral-soft); color: var(--wb-ink); border-color: var(--wb-ink); }
.rb-button--tier:hover { background: #ffd0c8; }
.wb-button--codes { background: var(--wb-sun); }
.wb-button--codes:hover { background: #ffdd6b; }
.wb-button--coral { background: var(--wb-coral); }
.wb-button--coral:hover { background: #ff8576; }
.rb-actions { display: flex; flex-wrap: wrap; gap: var(--wb-s3); margin: var(--wb-s4) 0 var(--wb-s2); }

.rb-search { display: flex; max-width: 560px; gap: var(--wb-s2); }
.rb-search input, .rb-list-search input, .wb-hero-search input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 12px 14px; border: 2px solid var(--wb-ink); border-radius: var(--wb-r-m); background: #fff; font: inherit; color: var(--wb-ink); }
.rb-search input:focus-visible, .rb-list-search input:focus-visible, .wb-hero-search input:focus-visible { outline: 3px solid var(--wb-focus); outline-offset: 2px; }

.rb-list-search { margin: var(--wb-s2) 0 var(--wb-s5); max-width: 640px; }
.rb-list-search label { display: block; font-weight: 800; margin-bottom: 6px; }
.rb-list-search-row { display: flex; flex-wrap: wrap; gap: var(--wb-s2); align-items: center; }
.rb-list-search input { flex: 1 1 220px; }
.rb-list-search-clear { padding: 10px 6px; font-weight: 700; }
.rb-list-search-clear[hidden] { display: none; }
.rb-list-search-status { margin: 10px 0 0; color: var(--wb-muted); font-size: .95rem; }
.rb-results[aria-busy=true] { opacity: .6; }

.rb-badge { display: inline-block; white-space: nowrap; padding: 4px 12px; border-radius: var(--wb-r-pill); border: 1.5px solid var(--wb-ink); background: var(--wb-surface); color: var(--wb-ink); font-size: .86rem; font-weight: 700; line-height: 1.4; }
.rb-badge--count { background: var(--wb-sun); }
.rb-badge--rank { background: var(--wb-teal); color: var(--wb-ink); text-decoration: none; }
.rb-badge--rank:hover { background: #3dd6c8; color: var(--wb-ink); }
.rb-badge--muted { border-color: var(--wb-line); background: var(--wb-surface-2); color: var(--wb-muted); }

/* Étiquette de type : fiche, guide, tier list, codes (sur les cartes et en tête des pages). */
.wb-type { display: inline-block; padding: 3px 10px; border: 2px solid var(--wb-ink); border-radius: var(--wb-r-s); background: var(--wb-teal); color: var(--wb-ink); font-size: var(--wb-tiny); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1.4; }
.wb-type--inline { margin: 0 0 var(--wb-s2); }
.wb-card--guide .wb-type, .wb-type--guide { background: var(--wb-ink); color: #fff; }
.wb-card--tier-list .wb-type, .wb-type--tier-list { background: var(--wb-coral); }
.wb-card--codes .wb-type, .wb-type--codes { background: var(--wb-sun); }
.wb-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--wb-s3); padding: 0; }
.wb-pill { display: inline-block; padding: 2px 10px; border-radius: var(--wb-r-pill); border: 1.5px solid var(--wb-line); background: var(--wb-surface-2); font-size: .82rem; font-weight: 700; color: var(--wb-ink); white-space: nowrap; }
.wb-pill--guide { background: #e3e8f2; border-color: #b9c3d6; }
.wb-pill--tier-list { background: var(--wb-coral-soft); border-color: #f5b3a9; }
.wb-pill--codes { background: var(--wb-sun-soft); border-color: #e9cf73; }

.rb-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--wb-s2); padding: 0; font-size: var(--wb-small); color: var(--wb-muted); }
.rb-breadcrumb li + li::before { content: "›"; margin-right: 6px; }

.rb-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--wb-s2); margin: var(--wb-s6) 0 0; padding: 0; }
.rb-pagination a.page-numbers, .rb-pagination span.page-numbers { display: inline-block; min-width: 44px; padding: 9px 12px; border: 1.5px solid var(--wb-ink); border-radius: var(--wb-r-m); background: var(--wb-surface); color: var(--wb-ink); text-align: center; text-decoration: none; font-weight: 700; }
.rb-pagination a.page-numbers:hover { background: var(--wb-surface-2); }
.rb-pagination span.current { background: var(--wb-teal); }
.rb-pagination span.dots { border: 0; background: none; }
.rb-pagination { margin-top: var(--wb-s6); }
.rb-pagination ul { margin-top: 0; }
.rb-pagination a.prev, .rb-pagination a.next { padding-inline: 16px; }
.rb-pagination span.current { font-weight: 900; box-shadow: 3px 3px 0 var(--wb-ink); }

/* =========================================================================
   6. Cartes (fiche, guide, tier list, codes) et visuel de repli
   ========================================================================= */
.rb-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--wb-surface); border: 2px solid var(--wb-ink); border-radius: var(--wb-r-l); box-shadow: var(--wb-offset) var(--wb-card-shadow, var(--wb-teal)); transition: transform var(--wb-ease), box-shadow var(--wb-ease); }
.wb-card--guide { --wb-card-shadow: #9fb0c8; }
.wb-card--tier-list { --wb-card-shadow: var(--wb-coral); }
.wb-card--codes { --wb-card-shadow: var(--wb-sun); }
.rb-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--wb-card-shadow, var(--wb-teal)); }
.rb-card:focus-within { outline: 3px solid var(--wb-focus); outline-offset: 3px; }
.wb-card-media { position: relative; aspect-ratio: 16 / 9; background: var(--wb-ink); border-bottom: 2px solid var(--wb-ink); overflow: hidden; }
.wb-card-media .rb-thumb { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; border-radius: 0; }
.wb-card-media .wb-type { position: absolute; top: 10px; left: 10px; }
/* Guides et tier lists : badge en bas à gauche, leurs images portant en général leur titre en haut (exceptions : wb_badge_en_haut()). */
.wb-card--guide:not(.wb-card--badge-haut) .wb-card-media .wb-type, .wb-card--tier-list:not(.wb-card--badge-haut) .wb-card-media .wb-type { top: auto; bottom: 10px; }
.wb-card-body { display: flex; flex: 1 1 auto; flex-direction: column; padding: var(--wb-s4) var(--wb-s4) var(--wb-s4); }
.rb-card-kicker { margin: 0 0 6px; font-size: var(--wb-tiny); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--wb-teal-ink); }
.wb-card--guide .rb-card-kicker { color: var(--wb-ink-2); }
.wb-card--tier-list .rb-card-kicker { color: var(--wb-coral-ink); }
.rb-card .rb-card-title { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; }
.rb-card-link { color: var(--wb-ink); text-decoration: none; }
.rb-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rb-card:hover .rb-card-link { text-decoration: underline; text-decoration-color: var(--wb-teal); text-decoration-thickness: 3px; }
.rb-card .rb-card-link:focus-visible { outline: none; }
.rb-card .rb-card-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 var(--wb-s4); color: var(--wb-muted); font-size: .95rem; line-height: 1.55; }
.rb-card-more { margin-top: auto; font-size: var(--wb-small); font-weight: 800; color: var(--wb-teal-ink); }
.wb-card--guide .rb-card-more { color: var(--wb-ink-2); }
.wb-card--tier-list .rb-card-more { color: var(--wb-coral-ink); }
.rb-card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.rb-card-foot .rb-card-more { margin-top: 0; }
.rb-card-secondary { position: relative; z-index: 2; font-size: var(--wb-small); font-weight: 700; }
.rb-codes-card-meta strong { color: var(--wb-ink); }
/* Liste des codes sur mobile : cartes compactes (vignette à gauche) pour une liste de plus de 100 jeux. */
@media (max-width: 600px) {
    .rb-codes-card { flex-direction: row; }
    .rb-codes-card .wb-card-media { flex: 0 0 116px; aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 2px solid var(--wb-ink); }
    .rb-codes-card .wb-card-media .wb-type { top: 6px; left: 6px; padding: 1px 6px; font-size: .68rem; }
    .rb-codes-card .wb-card-body { padding: 12px 14px; }
    .rb-codes-card .rb-card-title { font-size: 1.02rem; margin-bottom: 4px; }
    .rb-codes-card .rb-card-text { margin-bottom: 6px; font-size: .9rem; }
    .rb-codes-card .wb-fallback-name { display: none; }
    .rb-codes-card .wb-fallback-initials { min-width: 48px; height: 48px; font-size: 1.2rem; }
}

/* Repli : motif de modules, initiales et nom du jeu, sans image inventée. */
.wb-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: var(--wb-s3); text-align: center; color: #fff;
    background-color: var(--wb-ink);
    background-image: linear-gradient(90deg, rgba(25, 194, 179, .13) 50%, transparent 50%), linear-gradient(rgba(25, 194, 179, .13) 50%, transparent 50%);
    background-size: 28px 28px; background-position: 0 0, 14px 14px; }
.wb-fallback-initials { display: grid; place-items: center; min-width: 64px; height: 64px; padding: 0 10px; border: 3px solid #fff; border-radius: var(--wb-r-m); background: var(--wb-teal); color: var(--wb-ink); font-size: 1.7rem; font-weight: 900; letter-spacing: .02em; box-shadow: 4px 4px 0 var(--wb-coral); }
.wb-fallback-name { max-width: 90%; font-weight: 700; font-size: .95rem; line-height: 1.3; text-shadow: 0 1px 0 var(--wb-ink); }

/* =========================================================================
   7. Accueil
   ========================================================================= */
.rb-main.wb-home { padding-top: 0; }
.wb-hero { position: relative; overflow: hidden; background: var(--wb-ink); color: #fff; padding: var(--wb-s7) 0 var(--wb-s8); }
.wb-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 36px 36px; }
.wb-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--wb-s7); align-items: center; }
.wb-eyebrow { display: inline-block; margin: 0 0 var(--wb-s3); padding: 4px 12px; border: 2px solid var(--wb-teal); border-radius: var(--wb-r-pill); color: var(--wb-teal); font-size: var(--wb-small); font-weight: 800; }
.wb-hero h1 { color: #fff; margin: 0 0 var(--wb-s4); max-width: 18ch; }
.wb-hero .rb-lead { color: #c9d6e6; margin: 0 0 var(--wb-s5); }
.wb-hero-search { margin: 0 0 var(--wb-s4); max-width: 600px; }
.wb-hero-search label { display: block; margin-bottom: 8px; font-weight: 800; color: #fff; }
.wb-hero-search-row { display: flex; gap: var(--wb-s2); padding: 6px; background: #fff; border-radius: var(--wb-r-l); box-shadow: 6px 6px 0 var(--wb-teal); }
.wb-hero-search input { border: 0; font-size: 1.1rem; min-height: 52px; }
.wb-hero-search .rb-button { box-shadow: none; border-radius: var(--wb-r-m); }
.wb-hero-actions { display: flex; flex-wrap: wrap; gap: var(--wb-s3); margin: var(--wb-s5) 0 0; }
.wb-hero .rb-button { border-color: #fff; box-shadow: 3px 3px 0 #fff; }
.wb-hero .wb-hero-search .rb-button { border-color: var(--wb-ink); box-shadow: none; }
.wb-mosaic { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, minmax(34px, 1fr)); gap: 14px; min-height: 360px; }
.wb-tile { position: relative; z-index: 1; display: block; overflow: hidden; border: 3px solid #fff; border-radius: var(--wb-r-l); background: var(--wb-ink-2); color: #fff; text-decoration: none; transition: transform var(--wb-ease); }
.wb-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wb-tile:hover { transform: translate(-2px, -2px); color: #fff; }
.wb-tile:focus-visible { outline: 3px solid var(--wb-sun); outline-offset: 3px; }
.wb-tile-name { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 3px 9px; border-radius: var(--wb-r-s); background: var(--wb-ink); color: #fff; font-size: .82rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-tile--1 { grid-column: 1 / 5; grid-row: 1 / 4; box-shadow: 6px 6px 0 var(--wb-teal); }
.wb-tile--2 { grid-column: 5 / 7; grid-row: 1 / 3; }
.wb-tile--3 { grid-column: 3 / 7; grid-row: 4 / 7; box-shadow: 6px 6px 0 var(--wb-coral); }
.wb-tile--4 { grid-column: 1 / 3; grid-row: 4 / 6; }
.wb-mosaic-block { position: relative; z-index: 0; border-radius: var(--wb-r-m); }
.wb-mosaic-block--a { grid-column: 5 / 6; grid-row: 3 / 4; background: var(--wb-coral); }
.wb-mosaic-block--b { grid-column: 2 / 3; grid-row: 6 / 7; background: var(--wb-teal); }
.wb-tile .wb-fallback { position: absolute; }
.wb-tile .wb-fallback-name { display: none; }

.wb-section-head h2 { margin: 0; }
.wb-section-head h2::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; border-radius: 3px; background: var(--wb-teal); box-shadow: 4px 4px 0 var(--wb-coral); vertical-align: 2px; }
.wb-section--tiers .wb-section-head h2::before { background: var(--wb-coral); box-shadow: 4px 4px 0 var(--wb-teal); }
.wb-grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.wb-grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.wb-feature .wb-pills { margin-top: 2px; }

.wb-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--wb-s5); }
.wb-panel { display: flex; flex-direction: column; gap: var(--wb-s4); padding: var(--wb-s5); background: var(--wb-surface); border: 2px solid var(--wb-ink); border-radius: var(--wb-r-l); box-shadow: var(--wb-offset) var(--wb-panel-shadow, var(--wb-teal)); }
.wb-panel--codes { --wb-panel-shadow: var(--wb-sun); }
.wb-panel > .rb-button { align-self: flex-start; }
.wb-panel-head h2 { margin: 0 0 4px; }
.wb-panel-head p { margin: 0; }
.wb-codes-list { list-style: none; margin: 0; padding: 0; display: grid; }
.wb-codes-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--wb-s3); align-items: center; padding: 10px 0; border-bottom: 1px solid var(--wb-line-soft); }
.wb-codes-list li:last-child { border-bottom: 0; }
.wb-codes-list a { font-weight: 800; color: var(--wb-ink); }
.wb-codes-date { grid-column: 1 / -1; color: var(--wb-muted); font-size: .85rem; }
.wb-rank-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--wb-s2); }
.wb-rank-mini li { display: grid; grid-template-columns: 2rem 44px minmax(0, 1fr) auto; gap: var(--wb-s3); align-items: center; padding: 6px 10px 6px 6px; border: 1.5px solid var(--wb-line); border-radius: var(--wb-r-m); }
.wb-rank-mini-pos { font-weight: 900; font-size: 1.1rem; text-align: center; }
.wb-rank-mini li:first-child .wb-rank-mini-pos { color: var(--wb-coral-ink); }
.wb-rank-mini .rb-rank-icon { width: 44px; height: 44px; border-radius: var(--wb-r-s); }
.wb-rank-mini a { font-weight: 800; color: var(--wb-ink); overflow-wrap: anywhere; }
.wb-rank-mini-count { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--wb-muted); font-size: .92rem; }

@media (max-width: 899px) {
    .wb-hero { padding: var(--wb-s6) 0 var(--wb-s7); }
    .wb-hero-grid { grid-template-columns: 1fr; gap: var(--wb-s6); }
    .wb-mosaic { min-height: 0; grid-template-rows: repeat(6, 44px); gap: 10px; }
}
@media (max-width: 600px) {
    .wb-hero-search-row { flex-direction: column; box-shadow: 4px 4px 0 var(--wb-teal); }
    .wb-hero-search .rb-button { width: 100%; }
    .wb-hero-actions .rb-button { flex: 1 1 100%; }
    .wb-mosaic { grid-template-rows: repeat(6, 34px); }
    .wb-tile-name { font-size: .72rem; }
    .wb-rank-mini li { grid-template-columns: 1.6rem 40px minmax(0, 1fr); }
    .wb-rank-mini-count { grid-column: 3; }
}

/* =========================================================================
   8. Pied de page
   ========================================================================= */
.wb-footer { margin-top: var(--wb-s7); background: var(--wb-ink); color: #c9d6e6; border-top: 4px solid var(--wb-teal); font-size: .95rem; }
.wb-footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: var(--wb-s6); padding-block: var(--wb-s7) var(--wb-s5); }
.wb-footer-brand p { margin: var(--wb-s3) 0 0; max-width: 40ch; }
.wb-footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wb-s5); }
.wb-footer-title { margin: 0 0 var(--wb-s2); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: var(--wb-tiny); }
.wb-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wb-footer a { color: #fff; text-decoration-color: var(--wb-teal); }
.wb-footer a:hover { color: var(--wb-teal); }
.wb-footer a:focus-visible { outline-color: var(--wb-sun); }
.wb-footer-legal { padding-block: var(--wb-s4) var(--wb-s5); border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; }
.wb-footer-legal p { margin: 0; }
@media (max-width: 900px) { .wb-footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) {
    .wb-footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wb-footer-nav > div:last-child { grid-column: 1 / -1; }
}

/* =========================================================================
   9. Fiche de jeu, articles (guides, tier lists) et colonne de lecture
   ========================================================================= */
.rb-article { width: min(780px, calc(100% - 32px)); }
.rb-article .rb-content, .rb-article .rb-lead { max-width: none; }
.rb-article .rb-hero { padding: 4px 0 8px; }
.rb-article h1 { margin: .15em 0 .3em; }
.rb-article .rb-section { margin-top: var(--wb-s6); }
.rb-article h2[id] { scroll-margin-top: 16px; }
.rb-article .rb-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: var(--wb-s3) 0 var(--wb-s4); border: 2px solid var(--wb-ink); border-radius: var(--wb-r-l); box-shadow: var(--wb-offset) var(--wb-teal); }
.wb-article--tier-list .rb-thumb { box-shadow: var(--wb-offset) var(--wb-coral); }
.wb-article--guide .rb-thumb { box-shadow: var(--wb-offset) #9fb0c8; }
.rb-content { max-width: 76ch; }
.rb-content p, .rb-content li { line-height: 1.75; }
.rb-content h2 { margin-top: 1.6em; }
.rb-content img { border-radius: var(--wb-r-m); }

/* Encarts de liens et d'accès aux codes. */
.rb-codes-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 18px 22px; background: var(--wb-sun-soft); border: 2px solid var(--wb-ink); border-radius: var(--wb-r-l); box-shadow: var(--wb-offset) var(--wb-sun); }
.rb-codes-teaser h2 { margin: 0 0 4px; font-size: 1.25rem; }
.rb-codes-teaser-meta { margin: 0; color: var(--wb-muted); }
.rb-codes-teaser-meta strong { color: var(--wb-ink); }
.rb-codes-teaser .rb-button { flex: 0 0 auto; background: var(--wb-sun); }
.rb-related { border: 2px solid var(--wb-ink); box-shadow: var(--wb-offset) var(--wb-teal); }
.rb-related h2 { font-size: 1.2rem; margin: 0 0 8px; }
.rb-related ul { margin: 0; padding-left: 1.2em; }
.rb-related li { line-height: 1.85; }

/* Haut des fiches : genre, rang, cartes de statistiques. */
.rb-game-stats { margin: 4px 0 14px; }
.rb-game-pills { list-style: none; display: flex; flex-wrap: wrap; gap: var(--wb-s2); margin: 0 0 var(--wb-s3); padding: 0; }
.rb-stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--wb-s3); }
.rb-stat-card { background: var(--wb-surface); border: 1.5px solid var(--wb-line); border-radius: var(--wb-r-l); padding: 14px 16px; }
.rb-stat-card p { margin: 0; }
.rb-stat-label { color: var(--wb-muted); font-size: .88rem; font-weight: 700; }
.rb-stat-value { font-size: 1.6rem; font-weight: 900; line-height: 1.3; }
.rb-stat-value span { font-size: 1rem; font-weight: 600; color: var(--wb-muted); }
.rb-stat-value--vide { font-size: 1.1rem; color: var(--wb-muted); }
.rb-stat-date { color: var(--wb-muted); font-size: .86rem; }
.rb-stat-note { margin: 10px 0 0; color: var(--wb-muted); font-size: .88rem; }

/* Contenu des guides et tier lists : objectif, parcours, étapes, encadrés (classes posées dans le contenu). */
.rb-guide-goal { background: var(--wb-surface); border: 2px solid var(--wb-ink); border-radius: var(--wb-r-l); padding: 20px 22px; margin: 8px 0 22px; box-shadow: var(--wb-offset) var(--wb-teal-soft); }
.rb-guide-goal > p:not([class*="rb-guide-"]), .rb-guide-goal > .wp-block-group__inner-container > p:not([class*="rb-guide-"]) { margin: 0 0 .6em; }
.rb-guide-kicker { margin: 0 0 .4em; font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--wb-teal-ink); }
.rb-guide-path { margin: .4em 0 0; padding-left: 1.6em; display: grid; gap: 6px; }
.rb-guide-path li { padding-left: .2em; line-height: 1.55; }
.rb-guide-path li::marker { font-weight: 900; color: var(--wb-teal-ink); }
.rb-guide-more { margin: .9em 0 0; font-size: var(--wb-small); color: var(--wb-muted); }
.rb-guide-toc { border-left: 3px solid var(--wb-line); padding: 2px 0 2px 16px; margin: 0 0 8px; }
.rb-guide-toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rb-guide-toc-list a { display: inline-block; padding: 3px 0; }
.rb-guide-step { border-top: 2px solid var(--wb-line-soft); margin-top: 28px; padding-top: 16px; }
.rb-guide-step h2 { margin-top: .25em; }
.rb-guide-step h2 + * { clear: left; }
.rb-guide-step + .wp-block-heading { border-top: 2px solid var(--wb-line-soft); margin-top: 32px; padding-top: 20px; }
.rb-step-label { float: left; margin: .45em 12px 0 0; padding: 3px 12px; border: 2px solid var(--wb-ink); border-radius: var(--wb-r-s); background: var(--wb-teal); color: var(--wb-ink); font-size: .82rem; font-weight: 800; letter-spacing: .02em; }
.wb-article--tier-list .rb-step-label { background: var(--wb-coral); }
.rb-callout { margin: 14px 0; padding: 12px 14px; border-radius: var(--wb-r-m); border-left: 5px solid var(--wb-teal-ink); background: var(--wb-teal-soft); }
.rb-callout p { margin: 0; }
.rb-callout--todo { border-left-color: var(--wb-good); background: #e6f4ec; }
.rb-callout--warning { border-left-color: #8a5100; background: #fdf3e4; }
.rb-article a:focus-visible { outline: 3px solid var(--wb-focus); outline-offset: 2px; border-radius: 2px; }

/* Tableaux des articles (blocs core/table). */
.wp-block-table { margin: 1.4em 0; overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--wb-line); padding: .45em .6em; text-align: left; vertical-align: top; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.wp-block-table thead th { background: var(--wb-surface-2); }

/* =========================================================================
   10. Page de codes
   ========================================================================= */
.rb-codes-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; margin: 10px 0 0; padding: 16px; background: var(--wb-surface); border: 2px solid var(--wb-ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--wb-sun); }
.rb-codes-hero::after { content: ""; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 46%; background-image: linear-gradient(90deg, rgba(25, 194, 179, .14) 50%, transparent 50%), linear-gradient(rgba(25, 194, 179, .14) 50%, transparent 50%); background-size: 16px 16px; -webkit-mask-image: linear-gradient(to left, #000 10%, transparent); mask-image: linear-gradient(to left, #000 10%, transparent); }
.rb-codes-visual { position: relative; aspect-ratio: 1 / 1; border-radius: var(--wb-r-l); overflow: hidden; background: var(--wb-ink); border: 2px solid var(--wb-ink); }
.rb-codes-visual img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: 0; }
.rb-codes-visual .rb-codes-visual-bg { object-fit: cover; filter: blur(14px) saturate(1.15); transform: scale(1.3); opacity: .8; }
.rb-codes-visual .rb-codes-image { object-fit: contain; }
.rb-codes-heading { min-width: 0; }
.rb-codes-heading h1 { margin: 0; font-size: 1.65rem; line-height: 1.15; }
.rb-codes-hero > .rb-codes-badges { grid-column: 1 / -1; }
.rb-codes-h1-date { display: block; margin-top: 4px; font-size: .58em; font-weight: 700; color: var(--wb-muted); }
.rb-codes-badges { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--wb-s2); margin: 0; padding: 0; }
.rb-codes-author { color: var(--wb-muted); font-size: .88rem; font-weight: 700; }
.rb-codes-hero--sans-image { grid-template-columns: 1fr !important; }
.rb-codes-hero--sans-image > .rb-codes-badges { grid-column: 1 !important; }
.rb-codes-hero--sans-pastilles .rb-codes-visual { grid-row: auto; }
.rb-codes-hero--sans-pastilles .rb-codes-heading { align-self: center; }
@media (min-width: 601px) {
    .rb-codes-hero { grid-template-columns: 200px 1fr; gap: 16px 26px; padding: 22px; }
    .rb-codes-visual { grid-row: 1 / span 2; }
    .rb-codes-heading { align-self: end; }
    .rb-codes-heading h1 { font-size: 2.5rem; line-height: 1.08; }
    .rb-codes-hero > .rb-codes-badges { grid-column: 2; align-self: start; }
}
.rb-codes-intro { margin: 18px 0 0; }
.rb-codes-page #codes-actifs { margin-top: 24px; }
.rb-codes-page h2 { margin-bottom: 12px; }
.rb-codes-page .rb-codes-intro p, .rb-codes-page .rb-codes-after p, .rb-codes-page .rb-codes-faq p { font-size: 1rem; font-weight: 400; line-height: 1.75; color: var(--wb-ink); max-width: none; }
.rb-codes-page .rb-codes-intro p { margin: 12px 0 0; }
.rb-codes-page .rb-codes-after p { margin: 0 0 12px; }
.rb-codes-page .rb-codes-faq p { margin: 0; }
.rb-code-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rb-code { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--wb-surface); border: 2px solid var(--wb-ink); border-radius: var(--wb-r-m); padding: 14px 16px; }
.rb-code-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rb-code code { font: 800 1rem var(--wb-font-mono); overflow-wrap: anywhere; }
.rb-code .rb-code-value { font-size: 1.15rem; letter-spacing: .02em; user-select: all; -webkit-user-select: all; }
.rb-code-reward { color: var(--wb-ink); }
.rb-code-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
/* Badge « Nouveau » : même jaune que les numéros des étapes de saisie (--wb-sun), seul usage du jaune dans la liste.
   Position fixe en haut à droite de la carte ; sa place est réservée en haut de la colonne du bouton, qui garde sa
   largeur : un code ou une récompense longs passent à la ligne sans jamais le chevaucher. */
.rb-code { position: relative; flex-wrap: wrap; align-content: flex-start; }
.rb-code-main { flex: 1 1 0; }
.rb-badge--new { position: absolute; top: 10px; right: 12px; padding: 1px 9px; background: var(--wb-sun); font-size: .76rem; letter-spacing: .02em; line-height: 1.5; white-space: nowrap; }
.rb-code--new .rb-code-side { align-self: stretch; padding-top: 26px; }
/* Ligne « Mis à jour » sous le titre des codes actifs : turquoise très clair, liseré turquoise, date et nombres en gras. */
.rb-codes-update { margin: -2px 0 12px; padding: 6px 12px; background: var(--wb-teal-soft); border: 1.5px solid var(--wb-teal); border-radius: var(--wb-r-s); color: var(--wb-ink); font-size: .92rem; line-height: 1.45; }
.rb-codes-update strong { font-weight: 800; }
.rb-code small, .rb-code .rb-code-date { color: var(--wb-muted); font-size: .82rem; }
.rb-code--expired { opacity: .72; border-style: dashed; }
.rb-code-side { display: flex; align-items: center; gap: 8px 16px; flex: 0 0 auto; }
.rb-code-side:empty { display: none; }
.rb-copy { min-height: 44px; min-width: 104px; padding: 10px 14px; border: 2px solid var(--wb-ink); border-radius: var(--wb-r-m); background: var(--wb-teal); color: var(--wb-ink); font: inherit; font-weight: 800; cursor: pointer; box-shadow: 3px 3px 0 var(--wb-ink); transition: transform var(--wb-ease), box-shadow var(--wb-ease); }
.rb-copy:hover { background: #3dd6c8; }
.rb-copy:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--wb-ink); }
.rb-copy:focus-visible { outline: 3px solid var(--wb-focus); outline-offset: 3px; }
.rb-copy.is-copied { background: #bdeedd; }
.rb-copy[hidden] { display: none; }
.rb-codes-expired summary { cursor: pointer; }
.rb-codes-expired summary h2 { display: inline; font-size: 1.25rem; margin: 0; }
.rb-codes-expired .rb-code-list { margin-top: 12px; }
.rb-codes-steps { list-style: none; counter-reset: rb-step; padding: 0; margin: 0; display: grid; gap: 10px; }
.rb-codes-steps li { counter-increment: rb-step; position: relative; padding: 12px 14px 12px 58px; background: var(--wb-surface); border: 1.5px solid var(--wb-line); border-radius: var(--wb-r-m); margin: 0; line-height: 1.7; }
.rb-codes-steps li::before { content: counter(rb-step); position: absolute; left: 14px; top: 10px; width: 30px; height: 30px; border: 2px solid var(--wb-ink); border-radius: var(--wb-r-s); background: var(--wb-sun); color: var(--wb-ink); font-weight: 900; display: grid; place-items: center; }
.rb-codes-help li { line-height: 1.7; margin-bottom: 4px; }
.rb-ui-label { font-weight: 800; white-space: nowrap; }
.rb-codes-faq h3 { font-size: 1.08rem; margin: 20px 0 6px; }
@media (min-width: 800px) {
    .rb-codes-page #codes-actifs .rb-code-list, .rb-codes-page .rb-codes-expired .rb-code-list { grid-template-columns: 1fr 1fr; }
    .rb-codes-page .rb-code .rb-code-value { font-size: 1.05rem; }
}

/* =========================================================================
   11. Classement
   ========================================================================= */
.rb-ranking-meta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin: 4px 0 20px; }
.rb-ranking-meta p { margin: 0; }
.rb-ranking-time { white-space: normal; background: var(--wb-teal-soft); }
.rb-ranking-selection, .rb-ranking-range { color: var(--wb-muted); font-size: var(--wb-small); }
.rb-ranking-range { margin: 0 0 10px; }
.rb-ranking-notice { background: var(--wb-warn-bg); border: 1.5px solid var(--wb-warn-line); border-radius: var(--wb-r-m); padding: 12px 16px; color: var(--wb-warn-ink); max-width: 75ch; }
.rb-sort-tabs ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0 0 2px; overflow-x: auto; scrollbar-width: thin; }
.rb-sort-tabs li { flex: 0 0 auto; }
.rb-sort-tabs a { display: block; padding: 9px 16px; border: 2px solid var(--wb-ink); border-radius: var(--wb-r-m); background: var(--wb-surface); text-decoration: none; font-weight: 800; color: var(--wb-ink); white-space: nowrap; }
.rb-sort-tabs a:hover { background: var(--wb-surface-2); }
.rb-sort-tabs a[aria-current=page] { background: var(--wb-ink); color: #fff; box-shadow: 3px 3px 0 var(--wb-teal); }
.rb-sort-criterion { color: var(--wb-muted); font-size: var(--wb-small); margin: 12px 0 16px; }
.rb-sort-pending p { margin: 0 0 8px; }
.rb-sort-pending p:last-child { margin: 0; }
.rb-genre-filter ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--wb-s2); margin: 0 0 22px; padding: 0; }
.rb-genre-filter a { display: inline-block; padding: 6px 13px; border: 1.5px solid var(--wb-line); border-radius: var(--wb-r-pill); background: var(--wb-surface); color: var(--wb-ink); text-decoration: none; font-weight: 700; font-size: .92rem; }
.rb-genre-filter a:hover { border-color: var(--wb-ink); }
.rb-genre-filter a[aria-current=page] { background: var(--wb-teal); border-color: var(--wb-ink); }
.rb-genre-count { font-weight: 400; opacity: .85; }
.rb-rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rb-rank-item { display: grid; grid-template-columns: 2.6rem 56px minmax(0, 1.15fr) minmax(140px, .55fr) minmax(240px, 1.3fr); align-items: center; gap: 14px; background: var(--wb-surface); border: 1.5px solid var(--wb-line); border-radius: var(--wb-r-l); padding: 10px 16px 10px 10px; }
.rb-rank-item:hover { border-color: var(--wb-ink); }
.rb-rank-item:target { outline: 3px solid var(--wb-focus); outline-offset: 2px; }
.rb-rank-item:nth-child(-n+3) .rb-rank-pos { color: var(--wb-coral-ink); }
.rb-rank-pos { font-weight: 900; font-size: 1.15rem; text-align: center; color: var(--wb-ink); }
.rb-rank-icon { width: 56px; height: 56px; border-radius: var(--wb-r-m); object-fit: cover; display: block; background: var(--wb-surface-2); }
.rb-rank-icon--media { object-fit: contain; background: var(--wb-ink); }
.rb-rank-icon--vide { display: flex; align-items: center; justify-content: center; background: var(--wb-ink); color: var(--wb-teal); font-weight: 900; font-size: 1.05rem; }
.rb-rank-main { display: flex; flex-direction: column; min-width: 0; }
.rb-rank-name { font-weight: 800; color: var(--wb-ink); overflow-wrap: anywhere; }
.rb-rank-ext { font-weight: 600; color: var(--wb-teal-ink); font-size: .9rem; }
.rb-rank-sub { color: var(--wb-muted); font-size: .9rem; }
.rb-rank-fiche { color: var(--wb-good); font-weight: 700; }
.rb-rank-count { text-align: center; color: var(--wb-muted); font-size: .9rem; }
.rb-rank-count strong { display: block; color: var(--wb-ink); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
/* Courbe « 7 jours » : la colonne du jeu, les joueurs et la courbe partagent la largeur disponible. */
.rb-rank-spark { display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 0; width: 100%; }
.rb-spark { display: block; width: 100%; height: auto; overflow: visible; }
.rb-spark-line { fill: none; stroke: var(--wb-teal-ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.rb-spark-dot { fill: var(--wb-teal-ink); }
.rb-spark-legend { color: var(--wb-muted); font-size: .75rem; line-height: 1.2; text-align: right; }
.rb-rank-spark--vide { display: block; text-align: right; line-height: 1.3; }
.rb-spark-pending { color: var(--wb-muted); font-size: .8rem; line-height: 1.25; }

@media (min-width: 601px) and (max-width: 850px) {
    .rb-rank-item { grid-template-columns: 2rem 48px minmax(0, 1fr) minmax(180px, 1fr); gap: 10px; }
    .rb-rank-icon { width: 48px; height: 48px; }
    .rb-rank-main { grid-column: 3 / 5; }
    .rb-rank-count { grid-column: 3; text-align: left; }
    .rb-rank-spark { grid-column: 4; }
}

/* =========================================================================
   12. Historique des joueurs (graphique et onglets)
   ========================================================================= */
.rb-history .rb-tablist { display: flex; gap: 6px; margin: 12px 0; }
.rb-history [role=tab] { font: inherit; font-weight: 800; padding: 7px 14px; border-radius: var(--wb-r-pill); border: 2px solid var(--wb-ink); background: var(--wb-surface); color: var(--wb-ink); cursor: pointer; }
.rb-history [role=tab][aria-selected=true] { background: var(--wb-ink); color: #fff; }
.rb-history [role=tab]:focus-visible { outline: 3px solid var(--wb-focus); outline-offset: 2px; }
.rb-tabs--actif .rb-tabpanel-title { position: absolute; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.rb-tabpanel { margin-top: 8px; }
.rb-chart-figure { margin: 0; background: var(--wb-surface); border: 1.5px solid var(--wb-line); border-radius: var(--wb-r-l); padding: 10px; }
.rb-chart { width: 100%; height: auto; display: block; }
.rb-chart-grid { stroke: #e1e9f0; stroke-width: 1; }
.rb-chart-tick { stroke: #edf2f6; stroke-width: 1; }
.rb-chart-ylabel, .rb-chart-xlabel { fill: var(--wb-muted); font-size: 14px; }
.rb-chart-line { fill: none; stroke: var(--wb-teal-ink); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.rb-chart-dot { fill: var(--wb-teal-ink); }
.rb-chart-figure figcaption { margin: 6px 4px 0; }
.rb-history-pending { background: var(--wb-surface-2); border: 1.5px dashed var(--wb-line); border-radius: var(--wb-r-m); padding: 12px 16px; color: var(--wb-ink-2); }
.rb-history-table { margin-top: 10px; }
.rb-history-table summary { cursor: pointer; font-weight: 700; color: var(--wb-teal-ink); }
.rb-history-table table { border-collapse: collapse; margin-top: 8px; width: 100%; max-width: 420px; font-size: .93rem; }
.rb-history-table th, .rb-history-table td { border-bottom: 1px solid var(--wb-line); padding: 6px 8px; text-align: left; }
.rb-history-table td:last-child, .rb-history-table th:last-child { text-align: right; }

/* =========================================================================
   13. Petits écrans
   ========================================================================= */
@media (max-width: 600px) {
    .rb-main { padding-top: var(--wb-s5); }
    .rb-hero { padding-top: var(--wb-s2); }
    .rb-actions .rb-button { flex: 1 1 100%; }
    .rb-guide-goal { padding: 16px; }
    .rb-codes-teaser { padding: 16px; }
    .rb-codes-teaser .rb-button { flex: 1 1 100%; }
    .rb-code { padding: 12px 14px; }
    .rb-code .rb-code-value { font-size: 1.05rem; }
    .rb-copy { min-width: 92px; padding: 10px 12px; }
    .rb-sort-tabs ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; overflow: visible; }
    .rb-sort-tabs a { text-align: center; padding: 9px 6px; }
    .rb-rank-item { grid-template-columns: 2rem 44px minmax(0, 1fr); gap: 10px; padding: 10px 12px 10px 8px; }
    .rb-rank-icon { width: 44px; height: 44px; }
    .rb-rank-count { grid-column: 3; text-align: left; }
    .rb-rank-count strong { display: inline; font-size: 1rem; }
    .rb-rank-spark { grid-column: 3; flex-direction: column; align-items: flex-start; gap: 2px; }
    .rb-spark { width: min(100%, 320px); }
    .rb-spark-legend { text-align: left; }
    .rb-rank-spark--vide { display: block; text-align: left; }
    .rb-chart-ylabel, .rb-chart-xlabel { font-size: 24px; }
    .rb-stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .rb-stat-card { padding: 10px 12px; }
    .rb-stat-value { font-size: 1.25rem; }
    .rb-stat-date { font-size: .8rem; }
    .wp-block-table table { font-size: .85rem; }
    .wp-block-table th, .wp-block-table td { padding: .35em .4em; }
}


/* Pages d'information et signature de la rédaction (0.9.2). */
.wb-author-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; align-items: start; margin: 36px 0; padding: 24px; border: 2px solid var(--wb-ink); border-radius: var(--wb-r-l); background: var(--wb-surface); box-shadow: 5px 5px 0 var(--wb-teal); }
.wb-author-card .wb-author-avatar { width: 96px; height: 96px; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--wb-ink); border-radius: 24px; background: var(--wb-teal-soft); margin: 0; box-shadow: none; }
.wb-author-kicker, .wb-info-kicker { color: var(--wb-teal-ink); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; margin: 0 0 5px; }
.wb-author-card h2 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.35; }
.wb-author-card h2 a { color: var(--wb-ink); text-decoration: none; }
.wb-author-body > p:not(.wb-author-kicker) { margin: 0; font-size: .96rem; line-height: 1.7; }
.wb-author-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; }
.wb-author-links a { font-weight: 750; font-size: .9rem; text-underline-offset: 4px; }
.wb-info-page { max-width: 900px; padding-bottom: 24px; }
.wb-info-heading { padding: 12px 0 26px; border-bottom: 2px solid var(--wb-line); margin-bottom: 30px; }
.wb-info-heading h1 { margin: 8px 0 14px; }
.wb-info-lead { max-width: 65ch; color: var(--wb-muted); font-size: 1.12rem; line-height: 1.75; margin: 0; }
.wb-info-content { max-width: 76ch; }
.wb-info-content h2 { margin-top: 32px; font-size: 1.4rem; }
.wb-info-content p, .wb-info-content li { line-height: 1.8; }
.wb-info-content a { overflow-wrap: anywhere; }
.wb-legal-details { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(0, 1.3fr); gap: 12px 24px; }
.wb-legal-details dt { font-weight: 750; }
.wb-legal-details dd { margin: 0; overflow-wrap: anywhere; } /* retours à la ligne : <br> ajoutés par WordPress */
@media (max-width: 540px) {
    .wb-author-card { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
    .wb-author-card .wb-author-avatar { width: 80px; height: 80px; }
    .wb-legal-details { grid-template-columns: 1fr; gap: 4px; }
    .wb-legal-details dd { margin-bottom: 14px; }
}
