/* 9 · Soirée jeux — bandeau photo (meeples, lanterne), barre en verre dépoli (style 6), notice en blocs de couleur pour la lisibilité */
:root {
  --bg: #f7f3ee; --surface: #ffffff; --ink: #1d1a24; --muted: #6b6475; --line: #e9e1d8;
  --accent: #e8590c; --accent-soft: #fff1e6; --chip: #f4ede5;
  --display: "Plus Jakarta Sans", system-ui, sans-serif; --body: "Plus Jakarta Sans", system-ui, sans-serif;
}
body { font-size: 16px; }
body::before { background: transparent; }

/* Bandeau */
header.top {
  margin: 0 -16px; padding: 0 20px 64px; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  background: linear-gradient(180deg, rgba(10,12,30,.05) 30%, rgba(10,12,30,.82)), url(../assets/banniere.webp) 50% 60%/cover;
}
h1 { font-weight: 800; letter-spacing: -0.03em; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
header.top .sub { color: rgba(255,255,255,.9); }
@media (min-width: 760px) { header.top { margin: 16px 0 0; border-radius: 24px; min-height: 300px; padding-inline: 28px; } }

/* Barre de recherche en verre, qui chevauche le bas du bandeau */
.bar { margin-top: -48px; background: rgba(255,255,255,.78); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border: 1px solid rgba(255,255,255,.9); border-radius: 20px; margin-inline: -6px; padding-inline: 10px; box-shadow: 0 12px 32px -16px rgba(30,20,60,.45); top: 8px; }
.bar .filters { margin-inline: -10px; padding-inline: 10px; }
#q { border: 0; background-color: #fff; border-radius: 14px; }
#q:focus-visible { outline: 2px solid var(--accent); }
.players button { border: 1px solid var(--line); background: #fff; font-weight: 600; }
.players button[aria-pressed="true"] { background: linear-gradient(135deg, #f59f00, #e8590c 55%, #d6336c); border-color: transparent; color: #fff; }
#count { margin-top: 16px; }

/* Liste */
details.game { border: 0; border-radius: 20px; box-shadow: 0 2px 10px -4px rgba(60,40,20,.16); }
details.game[open] { box-shadow: 0 0 0 2px var(--accent), 0 16px 40px -18px rgba(60,40,20,.45); }
.box { border-radius: 14px; background: transparent; transition: width .2s, height .2s; }
details.game[open] > summary { grid-template-columns: 128px 1fr auto; }
details.game[open] .box { width: 128px; height: 128px; } /* couverture agrandie quand la fiche est ouverte */
@media (min-width: 700px) { details.game[open] > summary { grid-template-columns: 180px 1fr auto; } details.game[open] .box { width: 180px; height: 180px; } }
@media (prefers-reduced-motion: reduce) { .box { transition: none; } }
.name { font-weight: 700; font-size: 1.08rem; }
details[open] .chev { color: var(--accent); }
.meta b { background: var(--accent-soft); color: #b8430a; }

/* Notice : un bloc de couleur par partie */
.body { gap: 10px; }
.goal, .body > section { border-radius: 14px; padding: 12px 14px 12px 14px; border-left: 5px solid var(--c); background: var(--t); }
.goal { --c: #f59f00; --t: #fff6df; font-size: 1.02rem; }
.goal strong { color: #a85d00; }
.body > section:nth-of-type(1) { --c: #2f6fdf; --t: #eaf1ff; }
.body > section:nth-of-type(2) { --c: #1f9d55; --t: #e7f7ee; }
.body > section:nth-of-type(3) { --c: #7c4ddb; --t: #f1ebff; }
.body > section.warn { --c: #e03131; --t: #fff0ef; }
.body > section.ext { --c: #0b8a9a; --t: #e2f5f7; }
section h3 { color: var(--c); font-size: .8rem; letter-spacing: .08em; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
section h3::before { font-size: 1rem; letter-spacing: 0; }
.body > section:nth-of-type(1) h3::before { content: "📦"; }
.body > section:nth-of-type(2) h3::before { content: "🔄"; }
.body > section:nth-of-type(3) h3::before { content: "🏁"; }
.body > section.warn h3::before { content: "⚠️"; }
.body > section.ext h3::before { content: "➕"; }
section ul { gap: 6px; }
section li::marker { color: var(--c); }
section.warn ul { list-style: disc; }
section.warn li::marker { color: var(--c); }
.ext { gap: 10px; }
.extbox { background: rgba(255,255,255,.7); border-radius: 10px; padding: 10px 12px; }
.extbox .warn ul { list-style: "⚠ "; }

/* Liens PDF en boutons */
.links { border-top: 0; padding-top: 4px; gap: 8px; }
.links a { display: inline-block; text-decoration: none; padding: 8px 12px; border-radius: 10px; background: var(--chip); color: var(--ink); }
.links a b { color: var(--accent); }
