/* Échanges de Pokémon et menu « joueur » (7/11/2026) : cadre bleu de la ROM, comme les dialogues de Pijako. */
.modal > .box.rom-box { background: transparent; border: 16px solid transparent; border-image: url('assets/ui/cadres/cadre1_blue.png') 8 fill / 16px stretch;
  image-rendering: pixelated; box-shadow: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)); padding: 6px 10px; color: #fff; text-shadow: 0 2px 0 #000;
  animation: romIn .26s cubic-bezier(.2, 1.4, .4, 1); }
.modal.rom-out { animation: romFond .16s forwards; }
@keyframes romIn { from { transform: translateY(14px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes romFond { to { opacity: 0; } }

/* ---------- Menu du joueur ---------- */
.jm-modal .box { width: min(380px, 94vw); }
.jm-tete { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.jm-port, .jm-port img { width: 64px; height: 64px; }
.jm-qui { min-width: 0; }
.jm-qui .g-nom { font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jm-titre:empty { display: none; }
.jm-pk { font-size: 15px; }
.jm-ops { gap: 4px; }
.jm-aide { font-size: 14px; margin-bottom: 2px; }
.jm-op { display: flex; align-items: center; gap: 8px; text-align: left; width: 100%; justify-content: flex-start; animation: jmOp .22s both; }
.jm-op[aria-disabled="true"] { opacity: .5; }
.jm-op.jm-fermer { margin-top: 2px; }
@keyframes jmOp { from { transform: translateX(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.jm-btn { padding: 0; min-width: 0; line-height: 0; flex: none; border-width: 1px; background: transparent; }
.jm-btn:hover, .jm-btn:focus-visible { border-color: #ffd35c; box-shadow: 0 0 6px #ffd35c; }
.jm-btn .portrait { display: block; }


/* ---------- La machine d'échange ---------- */
.ech-modal .box { width: min(800px, 96vw); max-height: calc(100vh / var(--ui, 1) - 16px); overflow-y: auto; }
.ech-h { margin: 0 0 4px; font-size: 22px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ech-regle { font-size: 13px; margin: 4px 0 2px; }
.ech-refus { color: #ffb3a0; margin: 4px 0; }
.ech-scene { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin: 2px 0 4px; position: relative; }
.ech-machine { flex: 1 1 0; min-width: 0; max-width: 250px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ech-qui { color: #ffe27a; font-size: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ech-etat { font-size: 14px; min-height: 20px; text-align: center; }
.ech-ok { color: #8ff08a; }
/* La machine : un socle en pixels (métal bleu, rivets, voyant), un écran où se pose le cadre du Pokémon */
.ech-plateau { position: relative; width: 100%; padding: 8px 8px 20px; box-sizing: border-box; image-rendering: pixelated;
  background: linear-gradient(#6478b0 0 6px, #4b5d93 6px calc(100% - 14px), #33416e calc(100% - 14px));
  border: 3px solid #0a1233; border-radius: 8px 8px 3px 3px; box-shadow: inset 0 2px 0 #9fb3e8, inset 0 -2px 0 #222c52, 0 4px 0 #0a1233, 0 6px 10px rgba(0, 0, 0, .45); }
.ech-plateau::before, .ech-plateau::after { content: ''; position: absolute; top: 4px; width: 4px; height: 4px; background: #c9d6ff; box-shadow: 0 0 0 1px #0a1233; }
.ech-plateau::before { left: 4px; } .ech-plateau::after { right: 4px; }
.ech-ecran { position: relative; min-height: 158px; display: flex; align-items: stretch; justify-content: center; border: 3px solid #0a1233; box-shadow: inset 0 0 0 2px #2a3c6e;
  background: #0d1d3d repeating-linear-gradient(transparent 0 2px, rgba(120, 170, 255, .07) 2px 3px); }
.ech-voyant { position: absolute; left: 50%; bottom: 4px; width: 40px; height: 8px; margin-left: -20px; background: #1c2648; border: 2px solid #0a1233; }
.ech-voyant::before { content: ''; position: absolute; left: 4px; top: 1px; width: 6px; height: 2px; background: #ff9b3d; box-shadow: 10px 0 0 #3a4570, 20px 0 0 #3a4570; animation: echVoyant 1.4s steps(1) infinite; }
.ech-machine.ok .ech-voyant::before { background: #6dff70; box-shadow: 10px 0 0 #6dff70, 20px 0 0 #6dff70; animation: echPoint .6s infinite; }
@keyframes echVoyant { 50% { background: #5a3a14; } }
.ech-carte { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 4px 6px; box-sizing: border-box; position: relative;
  box-shadow: inset 0 -3px 0 var(--rar, #7fa6ef); transition: transform .3s, opacity .3s; }
.ech-carte.vide { justify-content: center; text-align: center; font-size: 14px; }
.ech-carte.ech-arrive { animation: echArrive .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes echArrive { from { transform: translateY(-14px) scale(.7); opacity: 0; } }
.ech-fente { width: 44px; height: 10px; margin: 0 auto 8px; background: #050b1c; border: 2px solid #3a4f86; border-radius: 6px; animation: echFente 1.6s infinite; }
@keyframes echFente { 50% { border-color: #ffd35c; box-shadow: 0 0 8px #ffd35c; } }
.ech-attente { animation: echSablier 1.2s steps(2) infinite; margin-bottom: 4px; }
@keyframes echSablier { 50% { transform: rotate(180deg); } }
.ech-port img { width: 72px; height: 72px; image-rendering: pixelated; display: block; }
.ech-carte.shiny .ech-port { position: relative; }
.ech-carte.shiny .ech-port::after { content: ''; position: absolute; right: -6px; top: 2px; width: 6px; height: 6px; background: #fff; box-shadow: -76px 34px 0 -1px #9ae6ff, -30px 64px 0 -2px #fff; animation: echBrille 1.4s infinite; }
@keyframes echBrille { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
.ech-nom { font-size: 17px; color: #fff; text-align: center; }
.ech-rar { border-color: var(--rar); color: var(--rar); font-size: 12px; }
.ech-niv, .ech-de, .ech-rendu { font-size: 12px; text-align: center; line-height: 1.2; }
.ech-de { color: #ffd9a0; }
.ech-rendu { color: #ffe27a; }
.ech-pulse { animation: echPulse .9s infinite alternate; }
@keyframes echPulse { to { box-shadow: inset 0 -3px 0 var(--rar), 0 0 14px #8ff08a; } }
/* Le câble Link entre les deux machines */
.ech-cable { flex: 0 1 90px; min-width: 34px; align-self: stretch; position: relative; display: flex; align-items: center; justify-content: center; }
.ech-fil { position: absolute; left: -6px; right: -6px; top: 50%; height: 6px; margin-top: -3px; background: #2b3970; border-top: 2px solid #0a1233; border-bottom: 2px solid #0a1233;
  background-image: repeating-linear-gradient(90deg, #4e6bb0 0 6px, #2b3970 6px 12px); }
.ech-cable.pret .ech-fil { background-image: repeating-linear-gradient(90deg, #ffd35c 0 6px, #2b3970 6px 12px); animation: echFil .5s linear infinite; }
@keyframes echFil { to { background-position: 12px 0; } }
.ech-prise { position: relative; z-index: 1; }
@keyframes echPoint { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
/* La collection : on choisit en dessous */
.ech-filtre { margin: 2px 0 4px; font-size: 14px; color: #ffe27a; text-align: center; }
.ech-filtre[hidden] { display: none; }
.ech-cherche { width: 100%; margin: 0 0 6px; box-sizing: border-box; }
.ech-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 5px; max-height: min(30vh, 260px); overflow-y: auto; padding: 2px; }
.ech-pk { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 2px; border-color: var(--rar); font-size: 13px; line-height: 1.1; min-width: 0; }
.ech-pk img { width: 44px; height: 44px; image-rendering: pixelated; }
.ech-pk span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ech-pk small { color: #9fb4e0; }
.ech-pk.shiny { box-shadow: inset 0 0 0 1px #9ae6ff; }
.ech-pk.choisi { border-color: #ffd35c; background: rgba(255, 211, 92, .18); animation: echChoisi .5s infinite alternate; }
@keyframes echChoisi { to { transform: translateY(-2px); box-shadow: 0 0 10px #ffd35c; } }
.ech-pk[hidden] { display: none; }
.ech-bas { margin-top: 6px; gap: 8px; align-items: center; flex-wrap: wrap; }
.ech-quota { font-size: 13px; }
#ech-ok[aria-disabled="true"] { opacity: .55; }
#ech-ok.ech-brille { animation: echBrilleBtn .8s infinite alternate; }
@keyframes echBrilleBtn { to { box-shadow: 0 0 12px #ffd35c; } }
.ech-en-cours .ech-coll, .ech-en-cours .ech-filtre, .ech-en-cours .ech-regle { opacity: .35; pointer-events: none; transition: opacity .3s; }

/* L'échange : le cadre se ferme en Poké Ball, la balle passe par le câble, s'ouvre de l'autre côté */
.ech-balle { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; image-rendering: pixelated; opacity: 0; z-index: 3; pointer-events: none; }
.ech-ferme .ech-carte { transform: scale(.15); opacity: 0; transition: transform .45s cubic-bezier(.6, 0, .8, .4), opacity .45s; }
.ech-ferme .ech-balle { opacity: 1; animation: echBalleIn .5s .25s both; }
@keyframes echBalleIn { from { transform: scale(0) rotate(-180deg); } 70% { transform: scale(1.25); } to { transform: scale(1); } }
.ech-voyage .ech-balle[data-cote="moi"] { animation: echVersD 1.1s cubic-bezier(.5, 0, .5, 1) both; }
.ech-voyage .ech-balle[data-cote="lui"] { animation: echVersG 1.1s cubic-bezier(.5, 0, .5, 1) both; }
/* distance d'un écran à l'autre : la largeur d'une machine et du câble (--va, posée par le jeu) */
@keyframes echVersD { 0% { transform: none; } 20% { transform: translateY(-18px); } 80% { transform: translate(var(--va, 260px), -18px) rotate(720deg); opacity: 1; } 100% { transform: translate(var(--va, 260px), 0) rotate(720deg); opacity: 0; } }
@keyframes echVersG { 0% { transform: none; } 20% { transform: translateY(-18px); } 80% { transform: translate(calc(-1 * var(--va, 260px)), -18px) rotate(-720deg); opacity: 1; } 100% { transform: translate(calc(-1 * var(--va, 260px)), 0) rotate(-720deg); opacity: 0; } }
.ech-voyage .ech-cable .ech-fil { background-image: repeating-linear-gradient(90deg, #fff 0 6px, #7fa6ef 6px 12px); animation: echFil .15s linear infinite; }
/* Arrivée : dans ma machine, la balle de l'autre s'ouvre (images de la ROM) dans un éclair blanc */
.ech-arrivee .ech-machine.moi .ech-ecran::after { content: ''; position: absolute; inset: 0; background: #fff; animation: echEclair .7s forwards; z-index: 4; }
.ech-arrivee .ech-balle[data-cote="lui"] { animation: none; transform: none; opacity: 1; }
@keyframes echEclair { 0% { opacity: 0; } 30% { opacity: .95; } 100% { opacity: 0; } }
.ech-balle[data-cote="arrivee"] { opacity: 1; animation: echOuvre .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.ech-balle[data-cote="parti"] { opacity: 1; }
@keyframes echOuvre { from { transform: translateY(-16px) scale(.7); } }
.ech-sort { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -46px 0 0 -36px; image-rendering: pixelated; z-index: 5; animation: echSort .5s .15s cubic-bezier(.2, 1.7, .4, 1) both; }
@keyframes echSort { from { transform: translateY(26px) scale(.1); opacity: 0; } }

/* Téléphone et petits écrans */
@media (max-width: 560px) {
  .ech-cable { flex-basis: 30px; }
  .ech-port img, .ech-sort { width: 52px; height: 52px; }
  .ech-nom { font-size: 15px; }
  .ech-ecran { min-height: 130px; }
  .ech-grille { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
}
@media (max-height: 460px) {
  .ech-h { font-size: 18px; margin: 0; }
  .ech-modal .box { padding: 2px 8px; }
  .ech-ecran { min-height: 84px; }
  .ech-port img { width: 40px; height: 40px; }
  .ech-rar { display: none; }
  .ech-qui { font-size: 14px; }
  .ech-plateau { padding: 5px 5px 16px; }
  .ech-scene { margin: 0; }
  .ech-niv, .ech-de { display: none; }
  .ech-grille { max-height: 22vh; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
  .ech-pk img { width: 32px; height: 32px; }
  .ech-regle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ech-carte, .ech-balle, .ech-sort, .ech-etoiles i, .jm-op, .modal > .box.rom-box { animation-duration: .01s !important; transition-duration: .01s !important; }
}
.ech-fin { text-align: center; position: relative; padding: 4px 0; }
.ech-fin h2 { margin: 6px 0 2px; color: #ffe27a; }
.ech-fin-port { display: inline-block; }
.ech-fin-port img { width: 96px; height: 96px; }
.ech-de-fin { margin: 2px 0; }
.ech-etoiles { position: absolute; inset: 0; pointer-events: none; }
.ech-etoiles i { position: absolute; width: 6px; height: 6px; background: #ffe14a; box-shadow: 0 0 0 1px #5a3a00; animation: echEtoile 1.1s ease-out both; }
.ech-etoiles i:nth-child(odd) { background: #fff; }
.ech-etoiles i:nth-child(1) { left: 50%; top: 30%; --dx: -120px; --dy: -40px; }
.ech-etoiles i:nth-child(2) { left: 50%; top: 30%; --dx: 120px; --dy: -50px; animation-delay: .05s; }
.ech-etoiles i:nth-child(3) { left: 50%; top: 30%; --dx: -90px; --dy: 40px; animation-delay: .1s; }
.ech-etoiles i:nth-child(4) { left: 50%; top: 30%; --dx: 100px; --dy: 50px; animation-delay: .12s; }
.ech-etoiles i:nth-child(5) { left: 50%; top: 30%; --dx: 0; --dy: -70px; animation-delay: .15s; }
.ech-etoiles i:nth-child(6) { left: 50%; top: 30%; --dx: -150px; --dy: 0; animation-delay: .2s; }
.ech-etoiles i:nth-child(7) { left: 50%; top: 30%; --dx: 150px; --dy: 10px; animation-delay: .22s; }
.ech-etoiles i:nth-child(8) { left: 50%; top: 30%; --dx: -50px; --dy: 70px; animation-delay: .25s; }
.ech-etoiles i:nth-child(9) { left: 50%; top: 30%; --dx: 60px; --dy: -80px; animation-delay: .3s; }
.ech-etoiles i:nth-child(10) { left: 50%; top: 30%; --dx: 40px; --dy: 80px; animation-delay: .35s; }
@keyframes echEtoile { from { transform: translate(0, 0) scale(1.4); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.4); opacity: 0; } }
.fi-recu { margin: 2px 0 4px; }
.ech-recu { border-color: #ffd9a0; color: #ffd9a0; }
/* (12/11) Ce que l'autre a déjà : onglets « Je donne » / « … peut te donner », filtres par rareté et normal / shiny,
   étiquettes Nouveau / Shiny nouveau / Déjà (pixel art : angles droits, bords de 2 px, ombres en marches) */
.ech-onglets { display: flex; gap: 4px; margin: 2px 0 0; }
.ech-onglet { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 1px 4px; border-width: 9px; border-image-width: 9px; font-size: 15px; opacity: .75; min-width: 0; }
.ech-onglet::before, .ech-chip::before { display: none; }
.ech-onglet span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ech-onglet.on { opacity: 1; border-image-source: url('assets/ui/cadres/cadre1_yellow_fin.png'); color: #ffe27a; transform: translateY(-1px); }
.ech-n { min-width: 18px; padding: 0 4px; background: #2bbd5b; color: #062; font-size: 13px; line-height: 16px; box-shadow: 0 2px 0 #0a5a25; }
.ech-onglet[data-vue="lui"] .ech-n { background: #ffd35c; color: #5a3a00; box-shadow: 0 2px 0 #9a6a00; }
.ech-filtres { display: flex; flex-direction: column; gap: 3px; padding: 5px 4px; margin: 0 0 4px; background: rgba(10, 24, 66, .65); box-shadow: inset 0 0 0 2px #1c3a86; }
.ech-ligne { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.ech-chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px; border-width: 9px; border-image-width: 9px; font-size: 13px; line-height: 16px; }
.ech-chip.on { border-image-source: url('assets/ui/cadres/cadre1_yellow_fin.png'); color: #ffe27a; }
.ech-chip:disabled { opacity: .3; filter: grayscale(1); }
.ech-chip.bloque::after { content: ''; width: 8px; height: 9px; margin-left: 2px; background: #ffe27a; clip-path: polygon(0 45%, 12% 45%, 12% 12%, 25% 0, 75% 0, 88% 12%, 88% 45%, 100% 45%, 100% 100%, 0 100%, 0 45%, 25% 45%, 25% 18%, 75% 18%, 75% 45%, 25% 45%); }
.ech-gemme { width: 8px; height: 8px; background: var(--rar); box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .35), inset 2px 2px 0 rgba(255, 255, 255, .45); transform: rotate(45deg); flex: none; }
.ech-chip-sh.on { border-image-source: url('assets/ui/cadres/cadre1_diamant_fin.png'); color: #9ae6ff; }
.ech-manque { margin-left: auto; }
.ech-manque.on { border-image-source: url('assets/ui/cadres/cadre1_green_fin.png'); color: #b8ffcf; }
.ech-case { display: inline-grid; place-items: center; width: 14px; height: 14px; background: #0a1842; box-shadow: inset 0 0 0 2px #8fb4ff; }
.ech-case > * { opacity: 0; transform: scale(.4); transition: opacity .12s, transform .12s steps(3); }
.ech-manque.on .ech-case > * { opacity: 1; transform: none; }
.ech-legende { font-size: 12px; margin: 0 0 4px; text-align: center; line-height: 1.35; }
.ech-legende [hidden] { display: none; }
.ech-l-neuf { color: #6ff09a; } .ech-l-shiny { color: #9ae6ff; } .ech-l-deja { color: #9aa6c0; }
.ech-grille[hidden], .ech-vide[hidden], .ech-onglet span[hidden], .ech-chip span[hidden] { display: none; }
.ech-vide { text-align: center; font-size: 14px; margin: 8px 0; }
.ech-pk { position: relative; padding-top: 12px; }
.ech-tag { position: absolute; top: -1px; left: -1px; right: -1px; display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 10px; line-height: 11px; padding: 0 2px; color: #062; background: #6ff09a; box-shadow: inset 0 -2px 0 #2bbd5b; white-space: nowrap; overflow: hidden; }
.ech-tag .pxi { flex: none; }
.ech-shiny .ech-tag { color: #063350; background: #9ae6ff; box-shadow: inset 0 -2px 0 #43a8d8; animation: echTagSh 1.2s steps(4) infinite; }
@keyframes echTagSh { 50% { background: #d4f6ff; } }
.ech-deja .ech-tag { color: #dfe6f5; background: #4a5470; box-shadow: inset 0 -2px 0 #2c3348; }
.ech-pk.ech-deja { opacity: .5; }
.ech-pk.ech-deja img { filter: grayscale(1) brightness(.75); }
.ech-pk.ech-neuf:not(.ech-vue) img { animation: echNeuf .9s steps(2) infinite alternate; }
@keyframes echNeuf { to { transform: translateY(-2px); } }
.ech-pk.ech-vue { cursor: help; }
.ech-pk.choisi-lui { border-color: #ffd35c; box-shadow: 0 0 0 2px #ffd35c; }
.ech-devient { color: #9ae6ff; }
.ech-grille[data-vue="lui"] { background: rgba(255, 211, 92, .06); }
@media (max-width: 560px) {
  .ech-onglet { font-size: 13px; padding: 5px 3px; }
  .ech-chip { font-size: 12px; padding: 2px 3px; }
  .ech-manque { margin-left: 0; }
  .ech-legende { font-size: 11px; }
}
@media (max-height: 460px) {
  /* téléphone couché : une seule bande de filtres qui défile au doigt, onglets fins */
  .ech-filtres { padding: 2px 3px; gap: 3px; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ech-filtres::-webkit-scrollbar { display: none; }
  .ech-ligne { flex-wrap: nowrap; flex: none; }
  .ech-chip { line-height: 14px; font-size: 12px; padding: 1px 3px; white-space: nowrap; }
  .ech-manque { margin-left: 0; }
  .ech-legende { display: none; }
  .ech-onglet { padding: 0 4px; font-size: 13px; }
  .ech-filtre { font-size: 12px; margin: 0 0 2px; }
}
@media (prefers-reduced-motion: reduce) { .ech-pk.ech-neuf img, .ech-shiny .ech-tag { animation: none !important; } }
/* (18/11, boîte à idées) la guilde du joueur dans son menu */
.jm-guilde { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jm-guilde img { width: 22px; height: 22px; image-rendering: pixelated; border-radius: 3px; flex: none; }
.jm-guilde b { color: var(--gold); font-weight: normal; }

/* (23/11) Fiche d'un membre de sa guilde : sa bannière en haut, en ligne ou non */
.jm-membre .box { width: min(440px, 94vw); }
.jm-bn { margin: -2px 0 8px; animation: romIn .3s steps(5) both; }
.jm-bn .banniere { width: 100%; }
.jm-bn .bn-attente { background: linear-gradient(90deg, #141a3a, #26326a, #141a3a); background-size: 200% 100%; animation: jmCharge 1s linear infinite; }
@keyframes jmCharge { to { background-position: -200% 0; } }
.jm-statut { display: flex; align-items: center; gap: 6px; font-size: 15px; color: #aab3d6; margin-top: 2px; }
.jm-point { width: 10px; height: 10px; background: #6a7090; box-shadow: 0 0 0 2px #0a1233; flex: none; }
.jm-statut.on { color: #8ff08a; } .jm-statut.on .jm-point { background: var(--ok, #5fd35f); animation: jmPouls 1.2s steps(2) infinite; }
@keyframes jmPouls { 50% { box-shadow: 0 0 0 2px #0a1233, 0 0 8px #5fd35f; } }

/* (2/12, demande de Kiko) Menu d'un joueur : sa bannière et son titre dès le clic, en haut (la carte). Le pseudo et le
   titre sont sur la bannière : on ne les répète pas dans la ligne du portrait (Pokémon, guilde). */
.jm-carte .box { width: min(440px, 94vw); }
.jm-carte .jm-bn { animation: jmCarte .32s cubic-bezier(.2, 1.3, .4, 1) both; }
.jm-carte.jm-avec-bn .jm-qui .g-nom, .jm-carte.jm-avec-bn .jm-qui .jm-titre { display: none; }
.jm-carte.jm-avec-bn .jm-port, .jm-carte.jm-avec-bn .jm-port img { width: 48px; height: 48px; }
.jm-carte.jm-avec-bn .jm-pk { font-size: 17px; color: var(--txt); }
.jm-carte .jm-bn .bn-nom { max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
@keyframes jmCarte { from { opacity: 0; translate: 0 -8px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
/* téléphone couché (peu de hauteur) : bannière plus basse pour garder les boutons à l'écran */
@media (max-height: 480px) { .jm-carte .jm-bn .banniere { height: 88px; } .jm-carte .jm-bn .bn-nom { font-size: 21px; } .jm-carte .jm-bn { margin-bottom: 5px; } }
