/* Quelle boîte — table system */
:root {
  --noyer: #3B2A1A;
  --brique: #C45C3E;
  --brique-dark: #8C3D28;
  --foret: #3D6B4F;
  --ble: #E0B84A;
  --pierre: #6B6E75;
  --ciel: #5BA4C9;
  --prune: #5C3D6E;
  --feutrine: #EFE6D6;
  --ink: #1C1712;
  --ink-soft: #5A4E42;
  --card: #FFF9F0;
  --ok: #2F6B4F;
  --warn: #9A6B1F;
  --gold: #D4A017;
  --shadow: 0 14px 34px rgba(28, 23, 18, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: var(--feutrine);
  line-height: 1.55;
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

/* —— Header / menu —— */
.site-head {
  position: sticky; top: 0; z-index: 80; overflow: visible;
  color: var(--feutrine);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), transparent 45%),
    url("/img/wood.jpg") center / cover no-repeat,
    var(--noyer);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  border-bottom: 3px solid var(--gold);
}
.site-head::after {
  content: "";
  display: block;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--brique) 0 18px, var(--foret) 18px 36px, var(--ble) 36px 54px, var(--ciel) 54px 72px, var(--prune) 72px 90px);
  opacity: .85;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 8px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; min-width: 0;
}
.brand img {
  height: 88px; width: auto; max-height: 88px; max-width: none;
  flex-shrink: 0;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.wordmark {
  font-family: "Cinzel Decorative", Cinzel, Palatino, serif;
  font-size: 1.32rem; font-weight: 700; letter-spacing: .02em; line-height: 1.05;
}
.wordmark em { font-style: normal; color: #F3C9B4; }
.wordmark small {
  display: block; margin-top: 3px;
  font-family: "Cinzel", Palatino, serif;
  font-size: .58rem; letter-spacing: .16em; text-transform: uppercase;
  color: #C9B48A; font-weight: 700;
}

.burger {
  display: none;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e07060, #9b2b22);
  box-shadow: 0 4px 0 #6e1c16;
  cursor: pointer; color: #fff; font: 800 1.1rem/1 Cinzel, serif;
}
.nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(255,249,240,.12);
  border: 1px solid rgba(255,249,240,.18);
  color: #F4E7C5;
  font-size: .9rem; font-weight: 800;
  letter-spacing: .01em;
  transition: background .15s, transform .15s, color .15s;
}
.chip:hover, .chip[aria-current="page"] {
  background: #FFF9F0; color: var(--noyer);
  transform: translateY(-1px);
}
.chip svg { width: 16px; height: 16px; flex-shrink: 0; }
.chip .pip {
  width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,.2);
}
.pip-catan { background: #C45C3E; }
.pip-7w { background: #D4A017; }
.pip-wing { background: #5BA4C9; }
.pip-carc { background: #D23C3C; }

.theme-catan .site-head { border-bottom-color: #C45C3E; }
.theme-7w .site-head { border-bottom-color: #D4A017; }
.theme-wing .site-head { border-bottom-color: #5BA4C9; }
.theme-carc .site-head { border-bottom-color: #D23C3C; }

/* —— Splash —— */
.splash {
  position: relative; isolation: isolate;
  min-height: min(62vh, 640px);
  background: #2a1c12 url("/img/hero-home.jpg") 78% 40% / cover no-repeat;
}
.splash::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(105deg, rgba(239,230,214,.95) 0%, rgba(239,230,214,.78) 32%, rgba(239,230,214,.18) 62%, transparent 80%);
}
.splash-inner { position: relative; z-index: 1; padding: 52px 0 56px; max-width: 38rem; }
.splash h1, .page h1, .game-banner h1 {
  font-family: "Cinzel", Palatino, serif;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0 0 14px;
}
.splash h1 { font-size: clamp(2.05rem, 4.6vw, 3.15rem); max-width: 16ch; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 48ch; margin: 0 0 22px; }
.search {
  display: flex; gap: 8px; max-width: 520px;
  background: var(--card);
  border: 1px solid #d9cbb3;
  border-radius: 999px;
  padding: 7px 7px 7px 18px;
  box-shadow: var(--shadow);
}
.search input {
  flex: 1; border: 0; background: transparent; font: inherit; font-size: 1rem; outline: none;
}
.search button {
  border: 0; cursor: pointer; font: 800 .95rem Nunito, sans-serif;
  background: var(--noyer); color: var(--feutrine);
  border-radius: 999px; padding: 11px 18px;
}
.note { margin: 14px 0 0; color: var(--ink-soft); font-size: .88rem; }

/* —— Cards —— */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 28px 0 64px;
}
.card {
  position: relative;
  background: var(--card) url("/img/parchment.jpg") center / cover;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  min-height: 320px;
  border: 1px solid #e2d3bb;
  transition: transform .18s ease, box-shadow .18s;
}
.card:hover { transform: translateY(-6px) rotate(-.3deg); box-shadow: 0 22px 40px rgba(28,23,18,.22); }
.card .art { height: 176px; background: #ccc center / cover no-repeat; }
.card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.kicker {
  position: absolute; top: 154px; left: 14px;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800;
  background: #fff9f0; padding: 5px 10px; border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
.card-catan .kicker { color: var(--brique); }
.card-7w .kicker { color: var(--prune); }
.card-wing .kicker { color: #2C6A7A; }
.card-carc .kicker { color: #B42323; }
.card h2 {
  font-family: "Cinzel", Palatino, serif;
  font-size: 1.45rem; margin: 14px 0 8px;
}
.card p { margin: 0 0 auto; color: var(--ink-soft); font-size: .92rem; }
.meta { margin-top: 12px; font-size: .8rem; color: var(--ink-soft); font-weight: 800; }

/* —— Game banners —— */
.game-banner {
  position: relative; isolation: isolate; color: #fff;
  min-height: min(52vh, 480px);
  background: #1c1712 var(--banner) center 42% / cover no-repeat;
}
.game-banner::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(20,12,8,.08), rgba(20,12,8,.62) 80%);
}
.game-banner .wrap { position: relative; z-index: 1; padding: 40px 0 64px; }
.game-banner h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem); color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
}
.game-banner .dek { color: rgba(255,255,255,.9); max-width: 46ch; font-size: 1.12rem; }
.crumb { font-size: .9rem; margin-bottom: 12px; font-weight: 700; }
.crumb a { color: #F0C7B4; text-decoration: none; }

.theme-wing .game-banner { color: var(--ink); }
.theme-wing .game-banner::after {
  background: linear-gradient(100deg, rgba(238,243,232,.92) 0%, rgba(238,243,232,.28) 58%, rgba(238,243,232,.05));
}
.theme-wing .game-banner h1 { color: #2C3A2C; text-shadow: none; }
.theme-wing .game-banner .dek { color: #3d4a3d; }
.theme-wing .crumb, .theme-wing .crumb a { color: #2C6A7A; }

.sheet {
  position: relative; z-index: 2;
  margin: -44px auto 0;
  background: var(--card) url("/img/parchment.jpg") center / cover;
  border-radius: 28px 28px 0 0;
  padding: 36px 36px 80px;
  box-shadow: 0 -18px 50px rgba(28,23,18,.2);
}
.page { /* padding lives on .sheet, do not zero the sides */ }
.sheet.page { padding: 36px 36px 80px; }
.intro-lead { font-size: 1.08rem; max-width: 62ch; margin: 0 0 10px; }
.facts { margin: 0; font-weight: 800; color: var(--ink-soft); font-size: .95rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.pill {
  background: rgba(59,42,26,.08);
  border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 800;
}
.block { margin: 28px 0; }
.block h2 {
  font-family: "Cinzel", Palatino, serif;
  font-size: 1.35rem; margin: 0 0 14px;
}
ol.steps { padding-left: 22px; }
ol.steps li { margin: 0 0 10px; }
table {
  width: 100%; border-collapse: collapse;
  background: rgba(255,249,240,.7);
  border: 1px solid #d9cbb3; border-radius: 16px; overflow: hidden;
  font-size: .95rem; box-shadow: var(--shadow);
}
th, td { text-align: left; padding: 12px 14px; vertical-align: top; }
th { background: rgba(59,42,26,.08); font-weight: 800; }
tr + tr td { border-top: 1px solid #eadbc6; }
.tag { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: .78rem; font-weight: 800; }
.tag-need { background: #f3e0c7; color: var(--warn); }
.tag-ok { background: #dcefe4; color: var(--ok); }
.tag-no { background: #f5d8d4; color: var(--brique-dark); }
.warnbox {
  background: #f8ead8; border-left: 5px solid var(--warn);
  padding: 14px 16px; border-radius: 10px; margin: 8px 0 22px;
}

/* Catan hexes */
.hex-path { display: flex; flex-wrap: wrap; gap: 10px 6px; align-items: center; }
.hex {
  width: 142px; aspect-ratio: .92;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 16px 14px; font-size: .82rem;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.15);
}
.hex strong { font-family: Cinzel, Palatino, serif; font-size: .95rem; display: block; margin-bottom: 4px; }
.hex-1 { background: #3D6B4F; }
.hex-2 { background: #3d6e8a; }
.hex-3 { background: #5C3D6E; }
.hex-x { background: #9b2b22; }
.hex-arr { color: var(--brique); font-size: 1.4rem; font-weight: 800; }

/* 7 Wonders stones */
.editions { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.stone {
  background: linear-gradient(180deg, #d7c4a4, #b99a74);
  color: #2a2118; border-radius: 14px; padding: 18px 16px; min-height: 120px;
  box-shadow: var(--shadow);
}
.stone h3 { margin: 0 0 6px; font-family: Cinzel, Palatino, serif; }
.wax {
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e07060, #9b2b22);
  color: #fff; display: grid; place-items: center;
  font-weight: 900; font-size: 1.5rem;
  box-shadow: 0 6px 0 #6e1c16; transform: rotate(-8deg);
}
.ext-row { display: flex; flex-wrap: wrap; gap: 14px; }
.coin { width: 96px; text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.coin i {
  display: grid; place-items: center;
  width: 68px; height: 68px; margin: 0 auto 6px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #e8d5a3, #c4a574);
  color: #2a2118; font-style: normal; font-size: 1.45rem;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 5px 0 rgba(0,0,0,.18);
}

/* Wingspan */
.migrate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hab {
  background: rgba(255,255,255,.72); border-radius: 16px; padding: 18px 20px;
  border: 1px solid #c9d6c4; box-shadow: var(--shadow);
}
.hab .where { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: #2C6A7A; }
.eggs { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: .9rem; }
.egg { display: flex; align-items: center; gap: 8px; }

/* Carcassonne */
.meeple-hero { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin: 4px 0 16px; }
.stamp {
  display: inline-block; border: 3px solid var(--brique); color: var(--brique-dark);
  padding: 8px 12px; transform: rotate(-3deg); font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; border-radius: 6px;
}
.path { display: flex; flex-wrap: wrap; gap: 10px; }
.path .step {
  flex: 1 1 150px; background: rgba(255,249,240,.85);
  border: 1px solid #d9cbb3; border-radius: 16px; padding: 18px 20px; min-height: 110px;
  box-shadow: var(--shadow);
}
.path .n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--noyer); color: var(--feutrine); font-weight: 800; font-size: .85rem; margin-bottom: 8px;
}
.path .step strong { display: block; font-family: Cinzel, Palatino, serif; }
.path .step span { display: block; color: var(--ink-soft); font-size: .85rem; margin-top: 4px; }

.foot {
  background: url("/img/wood.jpg") center / cover no-repeat, var(--noyer);
  color: #C4B49A; padding: 22px 0 36px; font-size: .88rem;
}
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot strong { color: var(--feutrine); }
.foot a { color: #E8DCC8; }

@media (max-width: 980px) {
  .grid, .migrate { grid-template-columns: 1fr 1fr; }
  .editions { grid-template-columns: 1fr; }
  .wax { margin: 4px auto; }
}
@media (max-width: 760px) {
  .burger { display: grid; place-items: center; }
  .nav {
    display: none; position: absolute; left: 16px; right: 16px; top: 78px;
    flex-direction: column; align-items: stretch;
    background: #2a1c12 url("/img/wood.jpg") center / cover;
    padding: 12px; border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,.4);
    border: 1px solid rgba(212,160,23,.35);
  }
  .nav.open { display: flex; }
  .chip { justify-content: flex-start; }
  .bar { position: relative; }
  .splash { min-height: 42vh; background-position: 82% 28%; }
  .splash::before {
    background: linear-gradient(180deg, rgba(239,230,214,.93) 0%, rgba(239,230,214,.7) 50%, rgba(239,230,214,.25));
  }
  .splash-inner { max-width: none; padding: 28px 0 32px; }
  .game-banner { min-height: 34vh; }
  .sheet, .sheet.page { margin-top: -28px; border-radius: 20px 20px 0 0; padding: 28px 20px 64px; }
  .wrap { width: min(1180px, calc(100% - 32px)); }
  .grid, .migrate { grid-template-columns: 1fr; }
  .wordmark small { display: none; }
  table { display: block; overflow-x: auto; }
}

/* Parchment menu (Rechercher, Jeux, Guide) */
.menu-bar {
  display: block;
  flex-shrink: 0;
  background: #EFE6D6 url("/img/parchment.jpg") center / cover;
  color: #2a2118;
  border-top: 1px solid rgba(59,42,26,.2);
  border-bottom: 2px solid #3B2A1A;
  box-shadow: 0 6px 16px rgba(28,23,18,.18);
  position: relative;
  z-index: 50;
}
.menu-row {
  display: flex; align-items: stretch; gap: 8px 28px;
  padding: 2px 0;
  flex-wrap: wrap;
}
.menu-item {
  position: relative;
  font-family: "Nunito", system-ui, sans-serif;
}
.menu-item > summary,
a.menu-item {
  display: inline-flex; align-items: center; gap: 8px;
  list-style: none; cursor: pointer;
  padding: 12px 4px;
  font-weight: 800; font-size: .95rem;
  color: #2a2118; text-decoration: none;
  background: none; border: 0;
}
.menu-item > summary::-webkit-details-marker { display: none; }
.menu-item > summary::after {
  content: "";
  width: 0; height: 0; margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #2a2118;
  opacity: .55;
}
a.menu-item::after { display: none; }
.menu-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.drop {
  display: none;
  position: absolute; top: 100%; left: 0; z-index: 60;
  min-width: 240px;
  background: #FFF9F0;
  border: 1px solid #d9cbb3;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 36px rgba(28,23,18,.18);
}
.menu-item[open] > .drop { display: flex; flex-direction: column; gap: 2px; }
.drop a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  text-decoration: none; font-weight: 800; color: #2a2118;
}
.drop a:hover, .drop a[aria-current="page"] { background: #E7DBC5; }
.drop .pip { width: 10px; height: 10px; border-radius: 3px; }
.menu-search {
  padding: 8px;
}
.menu-search .search { max-width: 280px; box-shadow: none; }

.site-head .burger, .site-head .nav { display: none !important; }
.site-head { border-bottom: 0; }
.site-head::after { display: none; }

@media (max-width: 760px) {
  .brand img { height: 68px; }
  .menu-row { gap: 4px 18px; }
  .drop { position: static; min-width: 0; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 22px; }
}
