/* TeamKit — pages de jeu enrichies (14 nov. 2026, maquette validée par Kevin : docs/jeux-medias/maquette.html) :
   liens officiels avec leurs logos, bande-annonce lue au clic + fiche « En bref », galerie de captures et visionneuse.
   Préfixe jm- ; couleurs et polices du site (css/style.css). */
.jm { margin: 2.5rem 0; }
.jm-h2 { font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-primary); margin: 0 0 1.1rem; display: flex; align-items: center; gap: 0.75rem; }
.jm-h2::before { content: ''; width: 3px; height: 1.2rem; background: var(--gradient-primary); display: inline-block; border-radius: 2px; flex: none; }

/* 1. Les liens officiels */
.jm-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-inline: auto; max-width: 900px; }
.jm-lien { flex: 0 1 280px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--text-primary); background: linear-gradient(145deg, #15151f, #1a1a25); border: 1px solid var(--border-color); transition: border-color .2s, transform .2s, box-shadow .2s; min-width: 0; }
.jm-lien:hover { border-color: var(--accent-primary); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0,240,255,.12); color: var(--text-primary); }
.jm-lien:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 3px; }
.jm-lien .jm-txt { min-width: 0; flex: 1; }
.jm-lien b { display: block; font-family: var(--font-display); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.jm-lien small { display: block; color: var(--text-muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jm-lien .jm-fleche { color: var(--text-muted); font-size: 1.1rem; flex: none; }
.jm-lien.jm-fort { background: linear-gradient(135deg, rgba(0,255,136,.16), rgba(0,240,255,.08)); border-color: rgba(0,255,136,.6); }
.jm-lien.jm-fort b { color: var(--accent-success, #00ff88); }
.jm-marque { width: 44px; height: 44px; flex: none; border-radius: 11px; display: grid; place-items: center; }
.jm-marque svg { width: 26px; height: 26px; display: block; }
.jm-marque.steam { background: linear-gradient(135deg, #171a21, #1b2838 55%, #2a475e); color: #fff; box-shadow: inset 0 0 0 1px rgba(102,192,244,.35); }
.jm-marque.itch { background: #fa5c5c; color: #fff; }
.jm-marque.github { background: #24292f; color: #fff; }
.jm-marque.dl { background: rgba(0,255,136,.16); color: var(--accent-success, #00ff88); }
.jm-marque.web { background: rgba(0,240,255,.1); color: var(--accent-primary); }
.jm-marque.jeu { background: #0b0b12; box-shadow: inset 0 0 0 1px var(--border-color); overflow: hidden; }
.jm-marque.jeu img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.jm-mention { margin: .8rem 0 0; font-size: .9rem; color: var(--text-muted); text-align: center; }

/* 2. La vidéo + la fiche « En bref » : côte à côte sur ordinateur, l'une sous l'autre sur téléphone */
.jm-duo { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(250px, 1fr); gap: 18px; align-items: start; }
.jm-duo.jm-seule { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
@media (max-width: 860px) { .jm-duo { grid-template-columns: minmax(0, 1fr); } }
.jm-duo-video { min-width: 0; }
.jm-video { position: relative; display: block; width: 100%; border-radius: 16px; overflow: hidden; border: 1px solid var(--border-color); background: #000; cursor: pointer; padding: 0; text-align: left; color: #fff; font: inherit; }
.jm-video .jm-cadre { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.jm-video img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .4s; filter: brightness(.78); display: block; }
.jm-video:hover img { transform: scale(1.03); filter: brightness(.9); }
.jm-video:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 3px; }
.jm-lire { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: clamp(64px, 12vw, 92px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--gradient-primary); box-shadow: 0 0 0 8px rgba(0,240,255,.18), 0 10px 40px rgba(0,0,0,.6); transition: transform .2s; }
.jm-video:hover .jm-lire { transform: translate(-50%, -50%) scale(1.08); }
.jm-lire svg { width: 38%; height: 38%; margin-left: 8%; fill: #04121a; }
.jm-bandeau { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.jm-bandeau b { font-family: var(--font-display); font-size: clamp(.78rem, 2.2vw, .95rem); letter-spacing: .03em; color: #fff; }
.jm-bandeau small { font-family: var(--font-mono); font-size: .72rem; color: rgba(255,255,255,.7); }
.jm-joue { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; border: 1px solid var(--border-color); background: #000; }
.jm-note { margin: .55rem 0 0; font-size: .9rem; color: var(--text-muted); }
.jm-note a { color: var(--text-secondary); }
.jm-fiche { border-radius: 16px; border: 1px solid var(--border-color); background: linear-gradient(160deg, #15151f, #101018); padding: 16px 18px; min-width: 0; }
.jm-fiche h3 { margin: 0 0 .7rem; font-family: var(--font-display); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-primary); }
.jm-fiche dl { margin: 0; display: grid; }
.jm-fiche dl > div { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.jm-fiche dl > div:last-child { border-bottom: 0; }
.jm-fiche dt { color: var(--text-muted); font-size: .88rem; }
.jm-fiche dd { margin: 0; color: var(--text-primary); font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.jm-tk { margin: .8rem 0 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(0,240,255,.07); border: 1px solid rgba(0,240,255,.25); font-size: .9rem; color: var(--text-secondary); }
.jm-tk b { color: var(--accent-primary); font-family: var(--font-display); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; width: 100%; }
.jm-src { margin: .6rem 0 0; font-size: .8rem; color: var(--text-muted); }

/* 3. La galerie */
.jm-galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .jm-galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.jm-galerie button { position: relative; padding: 0; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #000; aspect-ratio: 16 / 9; display: block; width: 100%; }
.jm-galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; display: block; }
.jm-galerie button:hover img { transform: scale(1.06); }
.jm-galerie button:hover, .jm-galerie button:focus-visible { border-color: var(--accent-primary); outline: none; }
.jm-galerie button span { position: absolute; right: 6px; bottom: 6px; font-family: var(--font-mono); font-size: .66rem; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.7); color: rgba(255,255,255,.85); }
.jm-legende { margin: .6rem 0 0; font-size: .9rem; color: var(--text-muted); text-align: center; }

/* Visionneuse des captures */
.jm-vis { position: fixed; inset: 0; z-index: 9000; background: rgba(5,5,9,.97); display: grid; grid-template-rows: auto 1fr auto; padding: 12px max(12px, env(safe-area-inset-right, 0px)) 16px max(12px, env(safe-area-inset-left, 0px)); }
.jm-vis[hidden] { display: none; }
.jm-vis-haut { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-secondary); font-family: var(--font-mono); font-size: .8rem; min-width: 0; }
.jm-vis-haut > span { display: flex; gap: .6rem; align-items: baseline; min-width: 0; }
.jm-vis-titre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.jm-vis-num { flex: none; color: var(--accent-primary); }
.jm-vis-scene { position: relative; display: grid; place-items: center; min-height: 0; touch-action: pan-y; user-select: none; }
.jm-vis-scene img { width: min(100%, 1280px, calc((100vh - 170px) * 16 / 9)); height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.jm-vis-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(21,21,31,.85); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; flex: none; }
.jm-vis-btn:hover, .jm-vis-btn:focus-visible { border-color: var(--accent-primary); color: var(--accent-primary); outline: none; }
.jm-vis-prec, .jm-vis-suiv { position: absolute; top: 50%; transform: translateY(-50%); }
.jm-vis-prec { left: 6px; } .jm-vis-suiv { right: 6px; }
.jm-vis-bas { text-align: center; color: var(--text-muted); font-size: .9rem; padding-top: 10px; }

/* Lot 2 (14 nov. 2026) : la vidéo d'un membre, le bouton « Propose la tienne » et sa fenêtre */
.jm-createur { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 99px; background: rgba(10,10,15,.82); border: 1px solid #ffd166; color: #ffd166; font-weight: 700; font-size: .95rem; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .jm-createur { font-size: .85rem; padding: 4px 10px; top: 8px; left: 8px; } .jm-createur .jm-long { display: none; } }
.jm-autre { background: none; border: 0; padding: 0; font: inherit; color: var(--text-secondary); text-decoration: underline; cursor: pointer; }
.jm-autre:hover, .jm-autre:focus-visible { color: var(--accent-primary); }
.jm-proposer { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(123,44,191,.18), rgba(0,240,255,.06)); border: 1px solid rgba(123,44,191,.55); max-width: 900px; margin-inline: auto; }
.jm-proposer p { margin: 0; flex: 1 1 260px; color: var(--text-secondary); }
.jm-proposer p strong { color: var(--text-primary); }
.jm-btn { border: 0; border-radius: 10px; cursor: pointer; font-family: var(--font-display); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: linear-gradient(135deg, #9d4edd, #7b2cbf); color: #fff; box-shadow: 0 4px 18px rgba(123,44,191,.4); font-size: .78rem; padding: .8rem 1.2rem; }
.jm-btn:hover, .jm-btn:focus-visible { filter: brightness(1.12); outline: none; }
.jm-btn[disabled] { opacity: .6; cursor: wait; }
.jm-btn.jm-gris { background: rgba(255,255,255,.08); box-shadow: none; color: var(--text-primary); border: 1px solid var(--border-color); }
.jm-fen { position: fixed; inset: 0; z-index: 9000; background: rgba(5,5,9,.8); display: grid; place-items: center; padding: 16px; }
.jm-fen[hidden] { display: none; }
.jm-fen-boite { width: 100%; max-width: 500px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg-secondary, #12121a); border: 1px solid rgba(123,44,191,.6); border-radius: 18px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.jm-fen-boite h3 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 .4rem; color: var(--text-primary); }
.jm-fen-boite p { color: var(--text-secondary); margin: 0 0 .9rem; }
.jm-fen-boite label { display: block; font-weight: 700; margin: .7rem 0 .3rem; color: var(--text-primary); }
.jm-fen-boite input[type=url] { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--border-color); background: var(--bg-primary, #0a0a0f); color: var(--text-primary); font: inherit; }
.jm-fen-boite .jm-coche { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--text-secondary); }
.jm-fen-boite .jm-coche input { margin-top: 5px; flex: none; width: 18px; height: 18px; accent-color: #9d4edd; }
.jm-fen-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.1rem; }
.jm-fen-boite .jm-petit { font-size: .88rem; color: var(--text-muted); margin: .8rem 0 0; }
.jm-fen-msg { margin: .9rem 0 0; padding: 10px 12px; border-radius: 10px; font-size: .95rem; }
.jm-fen-msg.ok { background: rgba(0,255,136,.1); border: 1px solid rgba(0,255,136,.45); color: var(--text-primary); }
.jm-fen-msg.ko { background: rgba(255,80,80,.1); border: 1px solid rgba(255,80,80,.5); color: var(--text-primary); }
.jm-mes { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: 8px; }
.jm-mes li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 9px 11px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--border-color); font-size: .92rem; color: var(--text-secondary); }
.jm-mes li b { color: var(--text-primary); flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.jm-mes .jm-etat { font-family: var(--font-mono); font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.08); }
.jm-mes .jm-etat.publie { background: rgba(0,255,136,.15); color: #00ff88; }
.jm-mes .jm-etat.attente { background: rgba(255,209,102,.15); color: #ffd166; }
.jm-mes .jm-etat.refuse { background: rgba(255,80,80,.15); color: #ff8080; }
.jm-mes small { width: 100%; color: var(--text-muted); }
.jm-yt-cadre { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--border-color); border-radius: 16px; background: #000; }

@media (prefers-reduced-motion: reduce) { .jm-lien, .jm-video img, .jm-lire, .jm-galerie img { transition: none; } .jm-lien:hover { transform: none; } }
