/* GradedHunter — fiche d'une carte « comme l'appli » (chantier 2, étape 2a, Catalogue, 29/11/2026).
   Spec : comparaison-site-appli-2026-11-29/SPEC-WEB-SITE-COMME-APPLI.md § Chantier 2 ; appli : SPEC-FICHE-SOUS-CARTE-1.0.1 §1-§3.
   Jetons de l'appli : s1 #14161c, s2 #1b1e26, filets 7 % / 12 %, ink #f3f5f8, ink2 #b7bec9, mut #8a929f, vert #5fd38d, rouge #ff6b6b, or #e0ad5f.
   Le moteur de la fiche (card.*.js) reste : sélection de la note, courbe, tableau des notes, prix non gradé. Ce fichier pose le nouveau
   haut de fiche (#ft) et range l'ancien (coup d'œil, vignette, onglets Cote | Annonces : retirés de l'affichage, gardés pour le moteur). */

/* ---------- l'ancien haut de fiche : retiré de l'affichage ---------- */
#pagetabs, .pagetabs { display: none !important; }
#tab-value, #tab-deals { display: block !important; }
body.pt-deals .seo { display: block !important; }
.chart-grid > .glance, .chart-grid > .art, .chart-grid > .hero { display: none !important; }
#tab-deals .head { display: flex !important; }

/* ---------- nouveau haut de fiche ---------- */
.c2 { margin: 4px 0 20px; }
.ft-nav { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; }
.ft-rond { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #14161c;
  border: 1px solid rgba(255,255,255,.12); color: #f3f5f8; cursor: pointer; text-decoration: none; padding: 0; }
.ft-rond:focus-visible, .ft-b:focus-visible, .ft-t:focus-visible, .ft-loupe:focus-visible, .ft-id a:focus-visible, .ft-en a:focus-visible { outline: 2px solid #e0ad5f; outline-offset: 2px; }
.ft-img { position: relative; margin: 0 auto; width: 236px; max-width: 70vw; }
.ft-img img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.5); background: #14161c; }
.ft-img .ft-ko { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 600 / 825; border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.12); color: #8a929f; font-size: 14px; background: #14161c; }
.ft-loupe { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%; background: rgba(11,12,16,.72);
  display: flex; align-items: center; justify-content: center; color: #f3f5f8; }
.ft-img .tp-badge { top: 10px; left: 10px; }

.ft-info { margin-top: 12px; }
.ft-info h1 { margin: 0; font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -.01em; color: #f3f5f8; }
.ft-id { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: #b7bec9; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; min-width: 0; }
.ft-id a { color: #f3f5f8; font-weight: 500; text-decoration: none; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.ft-id a::after { content: " ›"; color: #b7bec9; }
/* c (29/11/2026, demande de Cédric) : le nom d'extension mène à son catalogue ; zone de toucher de 44 px sans changer la ligne */
.ft-id a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.ft-crumbs a { display: inline-block; padding: 12px 2px; margin: -12px 0; }
.ft-crumbs .sep { margin: 0 6px; color: #8a929f; }
.ft-crumbs .here { color: #8a929f; }
.ft-id .s { color: #8a929f; flex: none; }
.ft-id span { flex: none; }
.ft-en { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: #8a929f; }
.ft-en a { color: #b7bec9; text-underline-offset: 3px; }

.ft-lib { margin: 10px 0 0; font-size: 14px; line-height: 18px; color: #8a929f; }
.ft-px { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; margin: 2px 0 0; }
.ft-px b { font-size: 36px; line-height: 42px; font-weight: 700; letter-spacing: -.03em; color: #f3f5f8; font-variant-numeric: tabular-nums; }
.ft-px b.or { color: #e0ad5f; }
.ft-px b.vide { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: 0; color: #8a929f; }
.ft-var { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ft-var.bas { color: #ff6b6b; } .ft-var.haut { color: #5fd38d; } .ft-var.stable { color: #8a929f; font-weight: 400; }
.ft-var .dep { font-size: 15px; font-weight: 400; color: #8a929f; }   /* pas de <small> : nav.*.css force tout <small> à 12 px */
body:not(.gh-app):not(.px):not(.sc-body) nav.crumbs.ft-crumbs { font-size: 14px !important; }   /* fil d'Ariane 14 px (spec), plus fort que la règle commune .crumbs 12 px */

.ft-act { display: flex; gap: 6px; margin: 10px 0 0; }
.ft-b { height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border-radius: 14px;
  background: #14161c; border: 1px solid rgba(255,255,255,.12); color: #f3f5f8; font: 600 15px/1 var(--sans, Inter, system-ui, sans-serif); text-decoration: none; cursor: pointer; }
.ft-b:hover { background: #1b1e26; }
.ft-b.ic { padding: 0; width: 44px; }
.ft-b.ic[aria-pressed="true"] svg { fill: currentColor; }
.ft-b.ann { flex: 1 1 auto; justify-content: space-between; padding: 0 10px 0 14px; }
.ft-b.ann svg { color: #b7bec9; }

.ft-tu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 14px 0 0; }
.ft-tu2 { margin: 2px 0 0; }
.ft-t { min-height: 64px; padding: 8px 10px; border-radius: 14px; background: #14161c; border: 1px solid rgba(255,255,255,.12); color: #f3f5f8;
  text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 1px; font: inherit; min-width: 0; }
.ft-t[aria-pressed="true"] { border-color: #e0ad5f; box-shadow: inset 0 0 0 1px #e0ad5f; }
.ft-t .l { font-size: 14px; line-height: 18px; color: #b7bec9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-t .p { font-size: 16px; line-height: 20px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-t .s { font-size: 14px; line-height: 18px; color: #8a929f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-autres { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; background: none; border: 0; color: #b7bec9; font: 500 14px/1 var(--sans, Inter, system-ui, sans-serif); cursor: pointer; }
.ft-autres:hover { color: #f3f5f8; }
.ft-autres svg { transition: transform .15s; }
.ft-autres[aria-expanded="true"] svg { transform: rotate(180deg); }
.ft-autres.on span { color: #f3f5f8; text-decoration: underline; text-decoration-color: #e0ad5f; text-underline-offset: 4px; }
.ft-autres:focus-visible { outline: 2px solid #e0ad5f; outline-offset: 2px; border-radius: 6px; }

/* « Autres » : le tableau complet des notes, caché par défaut (il se déplie) */
.chart-grid > .gpanel { display: none !important; }
body.ft-autres .chart-grid > .gpanel { display: block !important; }

/* courbe : pleine largeur, sous le haut de fiche */
.c2 .chart-grid { display: flex !important; flex-direction: column; gap: 16px; }
.c2 .chart-grid > * { width: auto !important; max-width: none !important; grid-column: auto !important; grid-row: auto !important; align-self: stretch !important; justify-self: stretch !important; }
.c2 > .c2-d > .section { margin-top: 20px; }

/* fil d'Ariane : sous la fiche (SEO), 14 mut */
.ft-crumbs { margin: 24px 0 8px; font-size: 14px; color: #8a929f; }
.ft-crumbs .back { display: none; }
.ft-crumbs a { color: #b7bec9; }

/* b (29/11/2026, Graphisme 2a-2) : plus d'OR sur les boutons actifs (périodes, « Ventes ») : fond s2 + texte blanc, comme le sélecteur
   de l'appli. L'or reste au prix (vraie cote) et à la tuile choisie. */
#chartCard #rangeSeg button[aria-pressed=true], #rChartCard #rRangeSeg button[aria-pressed=true], .ventes-btn[aria-pressed=true] {
  background: #1b1e26 !important; color: #f3f5f8 !important; border-color: rgba(255,255,255,.12) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12) !important; }
.ventes-btn[aria-pressed=true] span { color: #f3f5f8 !important; background: #1b1e26 !important; box-shadow: none !important; }
.ft-autres.on span { text-decoration-color: #b7bec9; }
/* prix non gradé : plus de sélecteur € | $ (règle commune : prix en €) */
.v3-dev { display: none !important; }

/* ---------- d (29/11/2026, étape 2b) : bas de fiche « comme l'appli » (SPEC-REMISE §2) ---------- */
.fb { display: flex; flex-direction: column; gap: 20px; margin: 20px 0 0; }
.fb-s[hidden] { display: none !important; }
.fb-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.fb h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; color: #f3f5f8; }
.fb-lien { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; background: none; border: 0; color: #b7bec9; font: 500 14px/1 var(--sans, Inter, system-ui, sans-serif); text-decoration: none; cursor: pointer; }
.fb-lien:hover { color: #f3f5f8; }
.fb-pret { margin: -6px 0 6px; font-size: 14px; color: #8a929f; }
.fb-tu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.fb-t { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 16px; text-align: left; cursor: pointer;
  background: linear-gradient(180deg, #1b1f29, #13151b); border: 1px solid rgba(255,255,255,.12); color: #f3f5f8; font: inherit; }
.fb-t b { font-size: 22px; line-height: 28px; font-weight: 600; font-variant-numeric: tabular-nums; color: #f3f5f8; margin-top: 4px; }
.fb-t b.or { color: #e0ad5f; }
.fb-t > span:not(.fb-pil) { font-size: 14px; line-height: 18px; color: #8a929f; }
.fb-pil { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: #222632; color: #f3f5f8; font-size: 14px; font-weight: 700; white-space: nowrap; }
.fb-bloc { background: #14161c; border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 14px 16px; }
.fb-h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fb-h2 b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; color: #f3f5f8; }
.fb-barre { display: flex; gap: 2px; height: 10px; margin: 12px 0 0; border-radius: 999px; overflow: hidden; }
.fb-barre i { display: block; height: 100%; min-width: 1.2%; }
.fb-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; font-size: 14px; color: #8a929f; }
.fb-leg span { display: inline-flex; align-items: center; gap: 6px; }
.fb-leg i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.fb-liste { padding: 4px 16px; }
.fb-ve { display: flex; align-items: center; gap: 12px; min-height: 60px; border-top: 1px solid rgba(255,255,255,.07); }
.fb-ve:first-child { border-top: 0; }
.fb-d { flex: 0 0 44px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.fb-d b { font-size: 17px; font-weight: 600; color: #f3f5f8; }
.fb-d span { font-size: 14px; color: #8a929f; }
.fb-q { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: #8a929f; }
.fb-q > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-p { flex: none; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; color: #f3f5f8; }
.fb-vers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fb-v { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 16px; background: #14161c; border: 1px solid rgba(255,255,255,.07); color: #f3f5f8; text-decoration: none; text-align: center; min-height: 44px; }
.fb-v.ici { border: 1.5px solid rgba(255,255,255,.7); }
.fb-vi { width: 64px; height: 88px; border-radius: 5px; background: #1b1e26; overflow: hidden; box-shadow: 0 6px 14px rgba(0,0,0,.45); }
.fb-vi img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fb-vn { font-size: 14px; font-weight: 600; }
.fb-vp { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fb-vp .m, .fb-v.ici .fb-vp { font-size: 14px; font-weight: 400; color: #8a929f; }
.fb-det { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.fb-det div { min-height: 60px; padding: 10px 14px; border-radius: 12px; background: #14161c; border: 1px solid rgba(255,255,255,.07); }
.fb-det dt { font-size: 14px; color: #8a929f; }
.fb-det dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: #f3f5f8; }
.fb-t:focus-visible, .fb-v:focus-visible, .fb-lien:focus-visible { outline: 2px solid #e0ad5f; outline-offset: 2px; }
.c2-d #tab-deals { margin-top: 20px; }   /* v5b (Graphisme) : 20 px entre Détails et En vente, à toutes les largeurs */
#tab-deals[data-vide] { display: none !important; }   /* « En vente » sans annonce : retiré (spec) */
@media (min-width: 1024px) { .fb-vers { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fb-det { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* e (29/11/2026) : plus de ligne de source au-dessus ni au-dessous des courbes (Cédric, retirée de l'appli : « tu dois retirer la ligne…
   et en dessous aussi tendance cardmarket ») ; la source reste dans le (i) du prix non gradé et dans l'infobulle de chaque point. */
#chartCard #axcap, #chartCard #srcNote, #rChartCard #rNote { display: none !important; }
.v3-src > span { visibility: hidden; }
.fb-det dd a { color: #f3f5f8; text-decoration: none; }
.fb-det dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* f (29/11/2026) : 2b-1 silhouette, 2b-2 bouton neutre, 2c menu « … » */
.fb-ko { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px; background: #1b1e26; border: 1px solid rgba(255,255,255,.12); box-shadow: none; font-size: 14px; color: #8a929f; text-align: center; line-height: 1.2; }
.fb-vi.fb-ko { width: auto; min-width: 64px; max-width: 100%; }   /* h (2b-4) : la silhouette s'élargit au mot, jamais coupé */
.fb-ko span { display: block; font-size: 14px; white-space: nowrap; }   /* h (2b-4) : centré, 14 px, jamais de débordement */
#tab-deals .gobtn, #tab-deals .gobtn.gosm { background: #14161c !important; color: #f3f5f8 !important; border: 1px solid rgba(255,255,255,.12) !important; box-shadow: none !important; }
.ft-nav-d { position: relative; display: inline-flex; gap: 8px; }
.ft-menu { position: absolute; top: 52px; right: 0; z-index: 20; width: 256px; padding: 6px; border-radius: 16px; background: #1d2029; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.ft-menu[hidden] { display: none !important; }
.ft-mi { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 12px; border-radius: 12px; border: 0; background: none; color: #f3f5f8; font: 500 15px/1.2 var(--sans, Inter, system-ui, sans-serif); text-align: left; text-decoration: none; cursor: pointer; }
.ft-mi:hover, .ft-mi:focus-visible { background: #2a2e3a; outline: none; }
.ft-mi svg { color: #b7bec9; flex: none; }

/* ---------- ordinateur (≥ 1024) : 2 colonnes, l'image collante à gauche ---------- */
@media (min-width: 1024px) {
  .c2 { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 32px; align-items: start; max-width: 1200px; margin-left: auto; margin-right: auto; }
  .c2-g { position: sticky; top: 88px; }
  .ft-img { width: 100%; max-width: 400px; }
  .ft-info { margin-top: 52px; }
  .ft-act { justify-content: flex-start; }
  .ft-b.ann { flex: 0 0 auto; gap: 12px; }
  .ft-tu { max-width: 520px; }
  .c2 #chartCard .chart-wrap { min-height: 320px; }
}
/* g (29/11/2026, revue ordinateur de Graphisme à 1280 / 1440 / 1920, demande de Cédric « N'oublie pas la version PC ») */
@media (min-width: 1024px) {
  /* PC-F1 : 3 tuiles sur toute la largeur de la colonne droite, prix 20/700 */
  .ft-tu { max-width: none; }
  .ft-t .p { font-size: 20px; line-height: 26px; }
  /* PC-F2 : le tableau complet des notes est affiché sous la courbe ; « Toutes les notes » ferait doublon */
  .chart-grid > .gpanel { display: block !important; }
  .ft-tu2, #fbToutes { display: none !important; }
  /* PC-F3 : la rangée d'actions a la largeur des tuiles, bords alignés */
  .ft-act { display: flex; }
  .ft-act > .ft-b:first-child, .ft-act > .ft-b.ann { flex: 1 1 0; }
  .ft-b.ann { flex: 1 1 0; justify-content: space-between; }
  /* PC-F4 : séparation nette avant le bloc SEO pleine largeur */
  .seo { margin-top: 40px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.07); }
  .c2-d #tab-deals { margin-top: 20px; }
}
@media (min-width: 1440px) {
  body:not(.ft-autres) .chart-grid > .gpanel { display: block !important; }
}
