/* TeamKit — Page d'un jeu sans serveur (2 nov. 2026, jeux/jeu-hors.php). Préfixe jh-. Les cartes des joueurs viennent de
   l'annuaire (css/joueurs.css). Maquette : docs/jeux/maquette-jeux-sans-serveur.html */
.jh { max-width: 1160px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.jh-fil { padding: 1rem 0; font-size: .8rem; color: var(--text-muted); font-family: var(--font-mono); }
.jh-fil a { color: var(--accent-primary); text-decoration: none; }
.jh-hero { position: relative; border-radius: 20px; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; background: center 35% / cover no-repeat; border: 1px solid var(--border-color); }
.jh-hero.is-fabrique { background-image: radial-gradient(ellipse at 20% 0%, hsl(var(--jh-h) 70% 40% / .55), transparent 60%), linear-gradient(135deg, hsl(var(--jh-h) 45% 18%), #0a0a0f); }
.jh-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,15,.15) 0%, rgba(10,10,15,.7) 60%, rgba(10,10,15,.96) 100%); }
.jh-hero-in { position: relative; z-index: 1; display: flex; gap: 20px; align-items: flex-end; padding: 24px; width: 100%; flex-wrap: wrap; }
.jh-jaq { width: 150px; aspect-ratio: 2 / 3; height: auto; object-fit: cover; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.6); border: 2px solid rgba(255,255,255,.12); flex: none; max-width: 100%; }
.jh-jaq.is-ini { display: grid; place-items: center; font: 900 3rem var(--font-display); color: #fff; background: linear-gradient(135deg, hsl(var(--jh-h) 60% 45%), hsl(var(--jh-h) 50% 22%)); }
.jh-hero-t { flex: 1; min-width: 240px; display: grid; gap: 8px; }
.jh-eti { font: 500 .72rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-primary); }
.jh-hero h1 { margin: 0; font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 900; text-shadow: 0 2px 18px rgba(0,0,0,.6); overflow-wrap: anywhere; }
.jh-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.jh-badge { font-size: .85rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.45); }
.jh-badge.is-hors { color: #ffd166; border-color: rgba(255,209,102,.5); }
.jh-badge.is-ok { color: var(--accent-success); border-color: rgba(0,255,136,.5); }
.jh-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
/* 3 nov. 2026 : 1 à 5 tuiles selon ce qu'il y a à dire (plus de tuile à zéro) */
.jh-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 16px 0 6px; }
.jh-source { font-size: .82rem; }
.jh-chiffre { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 12px 14px; }
.jh-chiffre b { display: block; font: 900 1.7rem var(--font-display); color: var(--accent-primary); font-variant-numeric: tabular-nums; line-height: 1.15; }
.jh-chiffre.is-heros b { color: var(--accent-success); font-size: 2rem; }
.jh-chiffre span { color: var(--text-muted); font-size: .9rem; }
.jh-sec { margin: 26px 0; display: grid; gap: 12px; }
.jh-sec h2 { margin: 0; font-family: var(--font-display); font-size: 1.05rem; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.jh-sec h2 small { font: 500 .9rem var(--font-body); color: var(--text-muted); }
.jh-note { margin: 0; color: var(--text-muted); font-size: .92rem; }
.jh-note a { color: var(--accent-primary); }
.jh-commus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.jh-commu { display: flex; gap: 12px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 12px; text-decoration: none; color: var(--text-primary); min-width: 0; }
.jh-commu:hover { border-color: var(--accent-primary); }
.jh-commu > span:nth-child(2) { min-width: 0; flex: 1; } .jh-commu b { display: block; overflow-wrap: anywhere; } .jh-commu small { color: var(--text-muted); }
.jh-logo { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font: 900 1rem var(--font-display); color: #fff; background: hsl(var(--jh-ch, 200) 60% 38%); flex: none; overflow: hidden; }
.jh-logo img { width: 100%; height: 100%; object-fit: cover; }
.jh-go { font-weight: 700; color: var(--accent-primary); white-space: nowrap; }
.jh-heures { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; align-items: end; height: 120px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 12px 12px 6px; }
.jh-heures i { display: block; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent-primary), #0a7f8f); }
.jh-heures i.is-pic { background: linear-gradient(180deg, var(--accent-success), #0a8f58); }
.jh-heures-l { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; padding: 0 12px; font: 500 .68rem var(--font-mono); color: var(--text-muted); text-align: center; }
.jh-envie { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; background: linear-gradient(135deg, rgba(255,209,102,.10), rgba(255,157,61,.06)); border: 1px solid rgba(255,209,102,.45); border-radius: 16px; padding: 18px; }
.jh-envie p { margin: 6px 0 0; color: var(--text-secondary); }
.jh-barre { height: 10px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.jh-barre i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffd166, #ff9d3d); transition: width .4s; }
.jh-envie-b { text-align: center; display: grid; gap: 8px; justify-items: center; }
.jh-envie-b b { font: 900 2rem var(--font-display); color: #ffd166; font-variant-numeric: tabular-nums; }
.jh-btn-or { border: 0; color: #1a0f00; background: linear-gradient(135deg, #ffd166, #ff9d3d); font-weight: 700; }
.jh-info { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.jh-bloc { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 14px; display: grid; gap: 8px; }
.jh-bloc h2 { font-size: .95rem; } .jh-bloc p { margin: 0; color: var(--text-secondary); }
.jh-proches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.jh-proches a { display: block; border-radius: 10px; overflow: hidden; background: #1a1a25 center / cover; aspect-ratio: 460 / 215; max-width: 100%; position: relative; text-decoration: none; color: #fff; }
.jh-proches span { position: absolute; inset: auto 0 0 0; padding: 14px 8px 5px; font-weight: 700; font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
@media (max-width: 820px) { .jh-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jh-commus, .jh-info { grid-template-columns: minmax(0, 1fr); } .jh-envie { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .jh-barre i { transition: none; } }
/* 3 nov. 2026 (audit) : sur téléphone, une heure sur deux sous le graphique (12 étiquettes se chevauchaient) */
@media (max-width: 500px) {
  .jh-heures-l span:nth-child(even) { visibility: hidden; }
  .jh-hero-in { padding: 16px; gap: 14px; }
  .jh-jaq { width: 110px; }
  .jh-hero-t { min-width: 0; flex-basis: 100%; }
  .jh-chiffre { padding: 10px 12px; }
  .jh-chiffre b { font-size: 1.4rem; }
  .jh-chiffre.is-heros b { font-size: 1.6rem; }
}
