/*
Theme Name: Cyclocross Is Boss
Theme URI: https://example.com/
Author: Cyclocross Is Boss (Antonin Kaminski)
Description: Thème du site du jeu « Cyclocross Is Boss — CX Manager Game » : page d'accueil statique (onglets Course / Carrière), classement online, statistiques, FAQ et dev blog gérables depuis WordPress. Habillage « pixel art » aligné sur le jeu.
Version: 1.1.0
Requires at least: 6.3
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: cib
*/

/* ═══════════════════════════════════════════════════════════════════════════════════════════════════
   Habillage inspiré du jeu : herbe en fond, papier crème, contours noirs, ombres dures sans flou,
   boutons carrés à pastille d'icône (.home-btn), panneaux à coins en escalier et bandeau de titre
   (.rl-duo-col / .rl-panel), titres Barlow Condensed ombrés (.rr-race-name), Jersey 10 pour les « petites étiquettes ».
   ═══════════════════════════════════════════════════════════════════════════════════════════════════ */
:root {
  --ink: #2b2418; --ink-soft: #1c150c; --cream: #f4f1e6; --paper: #fbfaf8; --paper-2: #e9e2cc; --black: #111;
  --bg: #f8f7f3; --grass: #87c178; --green: #4a684e; --accent: #a89968; --mud: #6b5344; --red: #c93a2d; --ok: #3f9b4a;
  --font-d: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-b: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-jersey: 'Jersey 10', var(--font-d);
  --wrap: 1080px;
  --shadow: 3px 3px 0 var(--ink);
  --social-w: 58px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 16px/1.6 var(--font-b); -webkit-font-smoothing: antialiased;
  background: var(--bg); }   /* même fond que le jeu (body.light) */
img { max-width: 100%; height: auto; }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--font-d); text-transform: uppercase; line-height: 1.1; letter-spacing: .04em; margin: 0 0 .5em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 200; background: var(--accent); color: var(--ink); padding: 8px 12px; }

/* Titres de section et de page : bandeau vert de panneau, texte crème à ombre dure brune (traitement de .rr-race-name) */
.section-head h2, .page-head h1 { display: inline-block; max-width: 100%; padding: 6px 20px 8px; background: var(--green); color: var(--cream); text-shadow: 2px 2px 0 var(--ink);
  border: 3px solid var(--black); box-shadow: 0 3px 0 var(--black); }

/* ── Header ───────────────────────────────────────────── */
.site-header { background: #fff; position: sticky; top: 0; z-index: 60; }
.site-header::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 15px; pointer-events: none; background-color: var(--mud);
  -webkit-mask: url('assets/img/sep-tire-mud.svg') repeat-x 0 0 / auto 100%; mask: url('assets/img/sep-tire-mud.svg') repeat-x 0 0 / auto 100%; }
.site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; padding: 8px 0; }
.brand-logo { max-height: 36px; width: auto; }
.brand b { font: 900 24px var(--font-d); text-transform: uppercase; letter-spacing: .5px; }
.brand b span { color: var(--accent); }
.brand small { font: 400 15px/1 var(--font-jersey); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: .75; margin-top: 4px; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a { display: block; padding: 6px 14px; color: var(--ink); text-decoration: none; background: #fff; border: 2px solid transparent; border-radius: 2px;
  font: 700 15px var(--font-d); text-transform: uppercase; letter-spacing: .07em; transition: box-shadow .12s ease, background-color .12s ease; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-ancestor > a, .site-nav .current_page_parent > a, .site-nav .current-post-ancestor > a { background: #f3ecd9; border-color: var(--ink); box-shadow: var(--shadow); }

/* Langues : mêmes codes que les drapeaux de l'accueil du jeu */
.lang-switch ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.lang-switch a { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px 0 9px; background: #fff; color: var(--ink); text-decoration: none;
  border: 2px solid var(--ink); border-radius: 2px; box-shadow: var(--shadow); font: 400 17px/1 var(--font-jersey); letter-spacing: .06em; transition: box-shadow .12s ease, background-color .12s ease; }
.lang-switch a:hover { background: #f3ecd9; box-shadow: 4px 4px 0 var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--accent); }
.lang-switch img { display: block; border: 1px solid var(--ink); }

/* ── Boutons (.home-btn / .home-btn-main du jeu) ─────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px 0 0; overflow: hidden; cursor: pointer; text-decoration: none;
  font: 700 17px/1.1 var(--font-d); text-transform: uppercase; letter-spacing: .06em; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 2px; box-shadow: var(--shadow); transition: box-shadow .12s ease, background-color .12s ease; }
.btn::before { content: ''; flex: 0 0 46px; align-self: stretch; margin-right: 16px;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 22px no-repeat; }
.btn:hover { background: #f3ecd9; box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }
.btn:focus-visible, .pill:focus-visible, .tab-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn.main { min-height: 68px; font-size: 24px; padding-right: 26px; }
.btn.main::before { flex-basis: 68px; margin-right: 18px; background-color: var(--accent); background-size: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232b2418' d='M8 5v14l11-7z'/%3E%3C/svg%3E"); }

/* ── Panneaux (.rl-duo-col / .rl-panel du jeu) : contour noir de 3px, coins en escalier, bandeau de titre plein ─────────── */
.pxw { display: flex; filter: drop-shadow(0 3px 0 var(--black)); min-width: 0; }
.pxc { flex: 1; min-width: 0; display: flex; flex-direction: column; border: 3px solid var(--black); background: var(--paper); color: var(--ink);
  clip-path: polygon(3px 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 0 calc(100% - 3px), 0 3px); }
.pxc-title { margin: 0; padding: 6px 12px; background: var(--accent); color: var(--ink); font: 800 20px/1.1 var(--font-d); text-transform: uppercase; letter-spacing: .06em; }   /* couleur du logo, partout la même */
.pxc-title a { color: inherit; text-decoration: none; }
.pxc-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 16px; min-width: 0; }
.pxc-body p { margin: 0; }
.pxc .ph, .pxc .ph-frame { border-radius: 0; border: 0; border-bottom: 3px solid var(--black); }

/* ── Accueil : hero ───────────────────────────────────── */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.hero-text { text-align: left; min-width: 0; }
.hero h1 { margin: 0; line-height: 1; }
.hero-logo { display: block; width: min(420px, 100%); height: auto; }
.hero .subtitle { font: 400 clamp(20px, 2.2vw, 26px)/1.1 var(--font-jersey); letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin: 22px 0 14px; }
.hero .lead { max-width: 520px; margin: 0 0 28px; font-size: 19px; font-weight: 600; color: var(--ink-soft); }
.hero .cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-shot { min-width: 0; }

/* Image principale : affichée EN ENTIER (jamais recadrée), cadre noir et ombre dure */
.hero-shot .ph-frame, .online-shot .ph-frame { aspect-ratio: auto; background: #fff; border: 3px solid var(--black); border-radius: 0; box-shadow: 5px 5px 0 var(--black); overflow: visible; }
.hero-shot .ph-frame .ph-img, .online-shot .ph-frame .ph-img { display: block; width: 100%; height: auto; object-fit: contain; }
.hero-shot .ph, .online-shot .ph { border: 3px solid var(--black); border-radius: 0; box-shadow: 5px 5px 0 var(--black); }
@media (max-width: 900px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-text { text-align: center; }
  .hero-logo { margin-inline: auto; }
  .hero .lead { margin-inline: auto; }
  .hero .cta { justify-content: center; }
}

/* Images de la médiathèque (cartes : cadre 16/10 recadré ; hero : voir ci-dessus) */
.ph-frame { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); border-radius: 0; }
.ph-frame.wide { aspect-ratio: 21 / 9; }
.ph-frame .ph-img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Cases grises = emplacements d'images à remplacer */
.ph { position: relative; background: #8a8f9a; aspect-ratio: 16 / 10; display: grid; place-items: center; color: rgba(255,255,255,.85); font: 400 20px var(--font-jersey); letter-spacing: .14em; text-transform: uppercase; overflow: hidden; }
.ph::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 14px, transparent 14px 28px); }
.ph span { position: relative; }
.ph.wide { aspect-ratio: 21 / 9; }
.ph.sq { aspect-ratio: 1; }

/* ── Sections ─────────────────────────────────────────── */
.section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(32px, 5vw, 50px); margin-bottom: 8px; }
.section-head p { color: var(--ink-soft); font-weight: 600; max-width: 620px; margin: 0 auto; }

/* Onglets Course / Carrière (boutons carrés ; actif = accent, comme le mode actif de la barre de lancement) */
.tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.tab-btn { font: 400 26px/1 var(--font-jersey); letter-spacing: .06em; text-transform: uppercase; padding: 10px 34px; background: #fff; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 2px; box-shadow: var(--shadow); cursor: pointer; transition: box-shadow .12s ease, background-color .12s ease; }
.tab-btn:hover { background: #f3ecd9; box-shadow: 4px 4px 0 var(--ink); }
.tab-btn[aria-selected="true"] { background: var(--accent); }
.tab-panel[hidden] { display: none; }
.tab-intro { text-align: center; max-width: 720px; margin: 0 auto 28px; font-size: 18px; font-weight: 600; color: var(--ink-soft); }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.feature ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; color: #5a4d36; }
.feature li { margin: 2px 0; }
.feature p { font-size: 15px; }

/* Bandeau Online : papier crème pleine largeur entre deux traits noirs */
.online-band { background: var(--paper-2); border-block: 3px solid var(--black); color: var(--ink); }
.online-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.online-band h2 { font-size: clamp(32px, 5vw, 50px); color: var(--ink); text-shadow: none; }
.online-band h2 span { color: var(--accent) !important; text-shadow: 2px 2px 0 var(--ink); }
.online-band p { font-weight: 500; }
.online-band .dim { color: #5a4d36; }
.online-band .cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
@media (max-width: 800px) { .online-band .wrap { grid-template-columns: 1fr; } }

/* ── Dev blog : cartes d'articles ─────────────────────── */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card .thumb { display: block; }
.post-card .thumb img, .post-card .thumb .ph { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 3px solid var(--black); }
.meta { font: 400 17px/1 var(--font-jersey); letter-spacing: .06em; text-transform: uppercase; color: #5a4d36; }
.post-card .more { margin-top: auto; align-self: flex-start; }
.lang-badge { display: inline-block; margin-left: 8px; padding: 1px 7px; background: var(--ink); color: var(--cream); font: 400 15px/1.3 var(--font-jersey); letter-spacing: .08em; vertical-align: middle; }

/* ── Article du dev blog : en-tête avec l'image à la une floutée, titre au milieu à droite ─────────────────────── */
.post-hero { position: relative; overflow: hidden; min-height: 280px; display: flex; align-items: center; background: var(--green); border-bottom: 3px solid var(--black); }
.post-hero-bg { position: absolute; inset: -24px; background: center / cover no-repeat; filter: blur(7px) brightness(.78) saturate(1.1); }
.post-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to left, rgba(20,16,10,.55), rgba(20,16,10,.08) 75%); }
.post-hero-in { position: relative; z-index: 1; width: min(var(--wrap), 100% - 32px); display: flex; justify-content: flex-end; padding: 56px 0; }
.post-hero-text { max-width: min(640px, 100%); text-align: right; }
.post-hero-title { display: inline-block; max-width: 100%; font-size: 44px; line-height: 1.05; margin: 0 0 12px; padding: 6px 20px 8px; background: var(--green); color: var(--cream); text-shadow: 2px 2px 0 var(--ink);
  border: 3px solid var(--black); box-shadow: 0 3px 0 var(--black); }   /* même bandeau vert que les titres de page */
.post-hero .meta { color: var(--cream); text-shadow: 1px 1px 0 var(--ink); }
/* Avec une image à la une en en-tête, pas de séparateur de boue sous la barre du site */
.has-hero-img .site-header::after { display: none; }
@media (max-width: 640px) { .post-hero { min-height: 220px; } .post-hero-title { font-size: 34px; } }

/* ── Pages de contenu / articles ──────────────────────── */
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: clamp(38px, 6vw, 64px); margin: 0; }
.page-head p { color: var(--ink-soft); font-weight: 600; margin: 6px 0 0; }
.content { padding: 28px 0 72px; }
.entry { max-width: 780px; margin-inline: auto; background: var(--paper); border: 3px solid var(--black); box-shadow: 0 3px 0 var(--black); padding: 26px 30px; overflow-wrap: anywhere; }
.entry > * + * { margin-top: 1.1em; }
.entry > :first-child { margin-top: 0; }
.entry h2 { font-size: 34px; margin-top: 1.4em; color: var(--green); }
.entry h3 { font-size: 26px; margin-top: 1.3em; }
.entry img { border: 2px solid var(--black); }
.entry-thumb { padding: 0; background: none; border: 0; box-shadow: none; margin-bottom: 22px; }
.entry-thumb img { display: block; width: 100%; border: 3px solid var(--black); box-shadow: 4px 4px 0 var(--black); }
.entry blockquote { margin-inline: 0; padding: 4px 18px; border-left: 5px solid var(--accent); color: #5a4d36; }
.entry pre, .entry code { background: var(--paper-2); font-size: .9em; }
.entry code { padding: 1px 5px; } .entry pre { padding: 14px; overflow-x: auto; border: 2px solid var(--ink); }
/* FAQ : bloc « Détails » de WordPress en accordéon */
.entry details { background: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow); margin-top: 14px; }
.entry details summary { cursor: pointer; padding: 11px 16px; font: 800 20px var(--font-d); text-transform: uppercase; letter-spacing: .05em; list-style: none; }
.entry details summary::-webkit-details-marker { display: none; }
.entry details summary::after { content: "+"; float: right; font: 400 28px/1 var(--font-jersey); color: var(--accent); }
.entry details[open] summary::after { content: "–"; color: var(--cream); }
.entry details[open] summary { background: var(--green); color: var(--cream); text-shadow: 2px 2px 0 var(--ink); border-bottom: 2px solid var(--ink); }
.entry details > *:not(summary) { margin: 0; padding: 12px 16px 16px; }
.pagination { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.pagination a, .pagination span { padding: 6px 14px; background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); text-decoration: none; font: 400 20px/1.2 var(--font-jersey); }
.pagination .current { background: var(--accent); }
.post-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 780px; margin: 22px auto 0; }
.post-nav a { display: inline-block; padding: 6px 14px; background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--shadow); text-decoration: none; font: 700 15px var(--font-d); text-transform: uppercase; letter-spacing: .06em; }
.post-nav a:hover { background: #f3ecd9; }
.post-langs { max-width: 780px; margin: 16px auto 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--ink-soft); font-weight: 600; }

/* ── Classement online & statistiques ─────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.pill { display: inline-block; padding: 6px 14px; background: #fff; color: var(--ink); text-decoration: none; border: 2px solid var(--ink); border-radius: 2px; box-shadow: 2px 2px 0 var(--ink);
  font: 700 15px/1.2 var(--font-d); text-transform: uppercase; letter-spacing: .06em; transition: box-shadow .12s ease, background-color .12s ease; }
.pill:hover { background: #f3ecd9; box-shadow: 3px 3px 0 var(--ink); }
.pill.sm { padding: 3px 11px; font-size: 13px; }
.pill.on { background: var(--accent); }
.lbl { font: 400 19px/1 var(--font-jersey); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-right: 2px; }
.filters select { background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 0; padding: 6px 10px; font: 600 14px var(--font-b); max-width: 100%; box-shadow: 2px 2px 0 var(--ink); }
.table-card { background: var(--paper); border: 3px solid var(--black); box-shadow: 0 3px 0 var(--black); overflow-x: auto; }
.table-card table { width: 100%; border-collapse: collapse; }
.table-card th { font: 800 13px var(--font-d); text-transform: uppercase; letter-spacing: .09em; color: var(--ink); background: var(--paper-2); text-align: left; padding: 9px 12px; border-bottom: 3px solid var(--black); }
.table-card td, .table-card th { white-space: nowrap; }
.table-card td { padding: 9px 12px; border-bottom: 1px solid #d9d1b8; }
.table-card tr:last-child td { border-bottom: 0; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.rank { width: 50px; font: 400 28px/1 var(--font-jersey); color: #8a7c5c; }
.table-card tr:nth-child(-n+3) .rank { color: var(--accent); text-shadow: 1px 1px 0 var(--ink); }
.score { font: 400 28px/1 var(--font-jersey); color: var(--green); }
.dim { color: #6b5f48; font-size: 12px; }
.empty { padding: 36px; text-align: center; color: #6b5f48; }
.flag { vertical-align: middle; border: 1px solid var(--ink); margin-right: 4px; }
.flag-code { font: 700 11px var(--font-d); color: #6b5f48; margin-right: 4px; }
.note { color: var(--ink-soft); font-size: 13px; font-weight: 500; margin-top: 16px; }
.note a { color: var(--ink); }
.notice { background: #fde8e4; border: 3px solid var(--red); color: var(--ink); padding: 12px 16px; margin-bottom: 16px; box-shadow: 0 3px 0 var(--red); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-tile { background: var(--paper); border: 3px solid var(--black); box-shadow: 0 3px 0 var(--black); padding: 12px 16px 14px; }
.stat-tile b { display: block; font: 400 46px/1 var(--font-jersey); color: var(--green); text-shadow: 2px 2px 0 rgba(43,36,24,.18); }
.stat-tile span { font: 800 13px var(--font-d); letter-spacing: .09em; text-transform: uppercase; color: var(--ink); }
.stat-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.bar-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bar-track { height: 12px; background: var(--paper-2); border: 2px solid var(--ink); overflow: hidden; }
.bar-track i { display: block; height: 100%; background: var(--green); }
.bar-val { font-variant-numeric: tabular-nums; color: #5a4d36; font-size: 13px; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding-bottom: 2px; border-bottom: 3px solid var(--ink); }
.spark i { flex: 1; min-width: 3px; background: var(--green); min-height: 2px; }
.spark-axis { display: flex; justify-content: space-between; color: #5a4d36; font: 400 16px var(--font-jersey); margin-top: 4px; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: var(--ink); border-top: 3px solid var(--black); padding: 34px 0; color: var(--cream); font-size: 14px; margin-top: 8px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--cream); text-decoration: none; font: 700 15px var(--font-d); text-transform: uppercase; letter-spacing: .07em; }
.site-footer a:hover { color: var(--accent); }

/* ── Barre « Suivez-nous » : fond noir, bien visible, collée au bord droit ───────────────────────── */
.social-bar { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 80; width: var(--social-w); background: #000; border: 2px solid #000; border-right: 0;
  border-radius: 6px 0 0 6px; box-shadow: -4px 4px 0 rgba(0,0,0,.35); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0 14px; }
.social-bar .sb-label { writing-mode: vertical-rl; transform: rotate(180deg); font: 400 24px/1 var(--font-jersey); letter-spacing: .16em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.social-bar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.social-bar a { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; border-radius: 3px; transition: background-color .12s ease, color .12s ease; }
.social-bar a:hover, .social-bar a:focus-visible { background: var(--accent); color: #000; outline: none; }
.social-bar svg { width: 25px; height: 25px; fill: currentColor; display: block; }
/* Écrans moyens : le contenu laisse la place à la barre (le header et le pied de page restent pleine largeur) */
@media (max-width: 1180px) and (min-width: 721px) { main, .site-footer, .site-header .wrap { padding-right: var(--social-w); } }
@media (max-width: 720px) {
  body { padding-bottom: 56px; }
  .social-bar { top: auto; bottom: 0; left: 0; right: 0; transform: none; width: auto; flex-direction: row; justify-content: center; gap: 16px; padding: 8px 12px;
    border-radius: 0; border: 0; box-shadow: 0 -3px 0 rgba(0,0,0,.35); }
  .social-bar .sb-label { writing-mode: horizontal-tb; transform: none; font-size: 22px; }
  .social-bar ul { flex-direction: row; }
}

/* Mobile : barre non collante, mais toujours « positionnée » — le séparateur (::after, top:100%) se place par rapport à elle */
@media (max-width: 900px) { .site-header { position: relative; } .lang-switch { margin-left: auto; } }
@media (max-width: 640px) {
  .site-nav { margin-left: 0; width: 100%; }
  .lang-switch { order: 2; margin-left: auto; } .brand { order: 1; } .site-nav { order: 3; } .lang-switch span { display: none; }
  .bar-row { grid-template-columns: 1fr auto; } .bar-row .bar-track { grid-column: 1 / -1; order: 3; }
  .entry { padding: 18px 16px; }
}

/* ── Boutons pixel art (octobre 2026) — mêmes boutons que le jeu : fond crème, anneau beige du logo, ombre dure en escalier (2 + 4 px),
   survol qui se soulève, appui qui s'enfonce, et colonne de carrés en damier entre le carré d'icône et le fond clair. ───────────── */
.btn, .lang-switch a { background-color: #fbf6ea; box-shadow: inset 0 0 0 2px var(--accent), 2px 2px 0 var(--ink), 4px 4px 0 var(--ink); transition: box-shadow .12s ease, background-color .12s ease, transform .12s ease; }
.btn:hover, .lang-switch a:hover { background-color: #fff0cf; box-shadow: inset 0 0 0 2px var(--accent), 3px 3px 0 var(--ink), 5px 5px 0 var(--ink); transform: translate(-1px, -1px); }
.btn:active, .lang-switch a:active { background-color: #eee0bd; box-shadow: inset 0 0 0 2px var(--accent), 2px 2px 0 var(--ink); transform: translate(2px, 2px); }
.lang-switch a[aria-current="true"] { background-color: var(--accent); box-shadow: 2px 2px 0 var(--ink), 4px 4px 0 var(--ink); }
.btn.main { box-shadow: inset 0 0 0 4px var(--accent), 2px 2px 0 var(--ink), 4px 4px 0 var(--ink); }
.btn.main:hover { box-shadow: inset 0 0 0 4px var(--accent), 3px 3px 0 var(--ink), 5px 5px 0 var(--ink); }
.btn { position: relative; --ico-bg: var(--ink); }
.btn.main { --ico-bg: var(--accent); }
.btn::after { content: ''; position: absolute; top: 0; bottom: 0; left: 46px; width: 3px; pointer-events: none; background: var(--ico-bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3' height='6' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h3v3H0z'/%3E%3C/svg%3E") 0 0 / 3px 6px repeat-y;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3' height='6' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h3v3H0z'/%3E%3C/svg%3E") 0 0 / 3px 6px repeat-y; }
.btn.main::after { left: 68px; }

/* ── Image d'une carte en grand (assets/js/lightbox.js) : l'image est un bouton, la fenêtre reprend le cadre pixel du jeu ───────── */
.ph-zoom { display: block; position: relative; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit; }
.ph-zoom::after { content: '+'; position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; display: grid; place-items: center; font: 400 26px/1 var(--font-jersey);
  color: var(--ink); background: #fbf6ea; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); opacity: 0; transform: translateY(3px); transition: opacity .12s ease, transform .12s ease; pointer-events: none; }
.ph-zoom:hover::after, .ph-zoom:focus-visible::after { opacity: 1; transform: none; }
.ph-zoom:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.cib-lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 28px 20px; background: rgba(17, 17, 17, .86); }
.cib-lightbox[hidden] { display: none; }
.cib-lightbox-fig { margin: 0; max-width: min(96vw, 1400px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cib-lightbox-media { line-height: 0; }
.cib-lightbox-media img, .cib-lightbox-media video { display: block; max-width: min(96vw, 1400px); max-height: calc(100vh - 130px); width: auto; height: auto; background: #fff; border: 3px solid var(--black); box-shadow: 6px 6px 0 var(--black), 0 0 0 3px #fbf6ea; }
.cib-lightbox-cap { color: #fbf6ea; font: 800 20px/1.2 var(--font-d); text-transform: uppercase; letter-spacing: .06em; text-align: center; text-shadow: 2px 2px 0 var(--black); }
.cib-lightbox-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; padding: 0; cursor: pointer; font: 400 30px/1 var(--font-jersey); color: var(--ink); background: #fbf6ea;
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink), 4px 4px 0 var(--ink); }
.cib-lightbox-close:hover { background: #fff0cf; transform: translate(-1px, -1px); }
html.cib-lightbox-open { overflow: hidden; }
