/* 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; }

/* ---------- 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; }
}
@media (min-width: 1440px) {
  body:not(.ft-autres) .chart-grid > .gpanel { display: block !important; }
}
