/* La fiche d'une carte. --rc = couleur de la rareté. */
.fiche { max-width: 1200px; margin: 0 auto; text-align: left; }
.fiche h1, .fiche h2 { text-shadow: none; text-transform: none; }
.fiche-tete { position: relative; overflow: hidden; margin: 0; padding: 22px 26px 28px; border: 0; border-bottom: 1px solid #ffffff17; box-shadow: none;
  background: repeating-linear-gradient(135deg, #ffffff08 0 10px, transparent 10px 20px), linear-gradient(#1c1740, #0f0c22); }
.fiche-tete > :not(.fiche-filigrane) { position: relative; }
.fiche-filigrane { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); font-size: min(260px, 34vw); font-weight: 900; line-height: 1; color: #ffffff0d; pointer-events: none; }
.fiche-chemin { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 40px; color: #a9a6c0; font-size: 15px; }
.fiche-chemin a, .fiche-chemin button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }
.fiche-chemin a:hover, .fiche-chemin button:hover { color: #fff; }
.fiche-chemin b { color: #fff; }
.fiche-puces { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.fiche-puces span { padding: 6px 12px; border-radius: 8px; border: 1px solid #ffffff22; font-size: 13px; font-weight: 800; }
.fiche-puces .plein { background: var(--seal, #ff4d38); border-color: transparent; color: #fff; }
.fiche-puces .rare { border-color: var(--rc); color: var(--rc); }
.fiche-tete h1 { margin: 12px 0 6px; font-size: clamp(38px, 7vw, 84px); line-height: 1.04; overflow-wrap: anywhere; }
.fiche-numero { margin: 0; color: #8f8ca3; font: 700 15px ui-monospace, Consolas, monospace; }

.fiche-corps { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; padding: 28px 0 40px; }
.fiche-principale { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.fiche-boite { padding: 30px; border-radius: 20px; border: 1px solid #ffffff17; background: #13102a; }
.fiche-boite.verrou { border-style: dashed; }
.fiche-boite h2 { margin: 0 0 10px; font-size: 30px; }
.fiche-boite p { max-width: 640px; margin: 0 0 12px; color: #c9c6da; line-height: 1.6; }
.fiche-boite p b { color: #fff; }
.fiche-cadenas { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 18px; border-radius: 14px; border: 1px solid #ffffff1c; font-size: 26px; }
.fiche-chance { font: 13px ui-monospace, Consolas, monospace; color: #8f8ca3 !important; }
.fiche-boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.fiche-principal, .fiche-clair { padding: 15px 28px; border: 0; border-radius: 99px; font-weight: 900; cursor: pointer; }
.fiche-principal { background: var(--seal, #ff4d38); color: #170a08; }
.fiche-clair { background: #eeeae4; color: #14101f; }
.fiche-lignes { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.fiche-lignes i { height: 12px; border-radius: 99px; background: #ffffff0b; }
.fiche-lignes i:last-child { width: 60%; }
.fiche-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 16px 0 18px; }
.fiche-details div { padding: 13px 15px; border-radius: 12px; background: #ffffff0b; border: 1px solid #ffffff12; }
.fiche-details dt { color: #8f8ca3; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.fiche-details dd { margin: 5px 0 0; font-weight: 800; overflow-wrap: anywhere; }

.fiche-surtitre { margin: 0 0 6px; color: var(--seal, #ff4d38); font: 800 13px ui-monospace, Consolas, monospace; letter-spacing: .2em; text-transform: uppercase; }
.fiche-principale h2 { margin-top: 0; }
.fiche-marche h2, .fiche-univers h2 { margin: 0 0 18px; font-size: clamp(26px, 3.4vw, 38px); }
.fiche-chiffres { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; margin-bottom: 20px; }
.fiche-chiffres small { display: block; color: #8f8ca3; font-size: 13px; }
.fiche-chiffres b { font-size: 24px; }
.fiche-periodes { display: flex; gap: 4px; margin-left: auto; padding: 4px; border-radius: 12px; border: 1px solid #ffffff1c; }
.fiche-periodes button { padding: 8px 15px; border: 0; border-radius: 9px; background: none; color: #d6d4e2; font-weight: 800; cursor: pointer; }
.fiche-periodes button.on { background: #eeeae4; color: #14101f; }
.fiche-courbe { display: block; width: 100%; height: auto; overflow: visible; }
.fiche-courbe .grille { stroke: #ffffff17; }
.fiche-courbe .mediane { stroke: #d6d4e2; stroke-dasharray: 5 5; opacity: .7; }
.fiche-courbe .trait { fill: none; stroke: #ff5438; stroke-width: 3; stroke-linejoin: round; }
.fiche-courbe .aire { fill: #ff543826; }
.fiche-courbe circle { fill: #14101f; stroke: #ff5438; stroke-width: 2.5; }
.fiche-courbe rect { fill: #ff543845; }
.fiche-courbe text { fill: #8f8ca3; font: 12px ui-monospace, Consolas, monospace; }
.fiche-courbe text.fort { fill: #fff; font-weight: 700; }
.fiche-vide { margin: 0; padding: 22px; border-radius: 14px; border: 1px dashed #ffffff1c; color: #8f8ca3; text-align: center; }
.fiche-ventes { margin-top: 16px; }
.fiche-ventes summary { cursor: pointer; font-weight: 800; }
.fiche-ventes ul { margin: 12px 0 0; padding: 0; list-style: none; }
.fiche-ventes li { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid #ffffff12; font-size: 14px; }
.fiche-ventes .fiche-vide { margin-top: 12px; }
.fiche-liens { display: flex; flex-wrap: wrap; gap: 22px; margin: 16px 0 0; }
.fiche-liens button { padding: 0; border: 0; background: none; color: #ff6a55; font-weight: 800; cursor: pointer; }

.fiche-univers > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.fiche-autre { display: flex; align-items: center; gap: 15px; min-width: 0; padding: 15px; border-radius: 16px; background: #13102a; border: 1px solid #ffffff14; color: #fff; text-decoration: none; }
.fiche-autre:hover { border-color: var(--rc); }
.fiche-autre .vignette { flex: none; display: grid; place-items: center; width: 68px; height: 68px; overflow: hidden; border-radius: 12px; border: 2px dashed #ffffff22; color: #ffffff2e; font-size: 28px; font-weight: 900; }
.fiche-autre .vignette img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fiche-autre:has(img) .vignette { border: 2px solid var(--rc); }
.fiche-autre > span:last-child { min-width: 0; }
.fiche-autre b { display: block; overflow-wrap: anywhere; }
.fiche-autre small { display: block; margin-top: 4px; color: var(--rc); font-weight: 800; }

.fiche-cote { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 20px; border: 1px solid #ffffff17; background: #13102a; }
.fiche-carte { position: relative; container-type: inline-size; width: min(260px, 100%); margin: 0 auto; }
.fiche-carte::before { content: ''; position: absolute; inset: 6% -12%; border-radius: 50%; background: var(--rc); filter: blur(44px); opacity: .4; }
.fiche-carte .card { position: relative; }
.fiche-carte.verrou .card { filter: grayscale(1) brightness(.6) blur(2px); cursor: default; }
.fiche-carte > span { position: absolute; inset: 0; display: grid; place-items: center; color: #ffffffd0; font-size: 70px; font-weight: 900; text-shadow: 0 4px 18px #000c; pointer-events: none; }
.fiche-etat { margin: 6px 0 0; color: var(--rc); font-weight: 900; }
.fiche-parbooster { margin: -8px 0 0; color: #8f8ca3; font: 13px ui-monospace, Consolas, monospace; }
.fiche-resume { padding: 12px 15px; border-radius: 12px; background: #ffffff09; font-size: 14px; color: #c9c6da; }
.fiche-resume p { margin: 4px 0; }
.fiche-resume b { color: #4fd8f0; }
.fiche-envie { padding: 15px; border: 0; border-radius: 12px; background: #eeeae4; color: #14101f; font-weight: 900; cursor: pointer; }
.fiche-envie[aria-pressed="true"] { background: #ff4d6d; color: #fff; }
.fiche-table, .fiche-chances dl { margin: 0; }
.fiche-table div, .fiche-chances dl div { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.fiche-table div { padding: 13px 0; border-bottom: 1px solid #ffffff12; }
.fiche-table dt { color: #8f8ca3; }
.fiche-table dd, .fiche-chances dd { margin: 0; text-align: right; font-weight: 800; }
.fiche-chances { padding: 15px; border-radius: 12px; background: #ffffff09; }
.fiche-chances p { margin: 0 0 8px; color: #8f8ca3; font: 800 12px ui-monospace, Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; }
.fiche-chances dl div { padding: 5px 0; }
.fiche-chances dd { color: #ff6a55; font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }
.fiche-note { margin: 0; color: #8f8ca3; font-size: 13px; }

@media (max-width: 900px) {
  .fiche-corps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  /* sur petit écran, la carte passe avant le texte */
  .fiche-cote { order: -1; }
  .fiche-tete { padding: 16px; }
  .fiche-chemin { margin-bottom: 22px; font-size: 13px; }
  .fiche-boite { padding: 20px; }
  .fiche-periodes { margin-left: 0; }
  .fiche-courbe text { font-size: 22px; }
}
